public static ThrowableInfo parse(String throwableInfoString) { if(throwableInfoString == null) { return null; } return parse(splitLines(throwableInfoString)); }
Matcher atMatcher = atMatcher(currentLine); if(atMatcher.matches()) Matcher omittedMatcher = omittedMatcher(currentLine); if(omittedMatcher.matches()) Matcher messageMatcher = messageMatcher(currentLine); // will always match... if(messageMatcher.matches()) ThrowableInfoParseResult parsed = parse(throwableInfoLines, index, indent); index = parsed.endIndex - 1; if(parsed.throwableInfo != null) ThrowableInfoParseResult parsed = parse(throwableInfoLines, index, indent + 1); index = parsed.endIndex - 1; if(parsed.throwableInfo != null)
public static ThrowableInfo parse(List<String> throwableInfoLines) { if(throwableInfoLines == null) { return null; } if(throwableInfoLines.isEmpty()) { return null; } return parse(throwableInfoLines, /*startIndex=*/0, /*indent=*/0).throwableInfo; }
if(throwableStrRep != null && throwableStrRep.length>0) result.setThrowable(ThrowableInfoParser.parse(Arrays.asList(throwableStrRep)));