/** * @param sb The StringBuilder the STEPs are appended to. * @param tp the IThrowableProxy containing the STEPs. * @deprecated Use subjoinSTEPArray(StringBuilder sb, int indentLevel, IThrowableProxy tp) instead. */ public static void subjoinSTEPArray(StringBuilder sb, IThrowableProxy tp) { // not called anymore - but it is public subjoinSTEPArray(sb, REGULAR_EXCEPTION_INDENT, tp); }
private static void recursiveAppend(StringBuilder sb, String prefix, int indent, IThrowableProxy tp) { if (tp == null) return; subjoinFirstLine(sb, prefix, indent, tp); sb.append(CoreConstants.LINE_SEPARATOR); subjoinSTEPArray(sb, indent, tp); IThrowableProxy[] suppressed = tp.getSuppressed(); if (suppressed != null) { for (IThrowableProxy current : suppressed) { recursiveAppend(sb, CoreConstants.SUPPRESSED, indent + SUPPRESSED_EXCEPTION_INDENT, current); } } recursiveAppend(sb, CoreConstants.CAUSED_BY, indent, tp.getCause()); }
/** * @param sb The StringBuilder the STEPs are appended to. * @param tp the IThrowableProxy containing the STEPs. * @deprecated Use subjoinSTEPArray(StringBuilder sb, int indentLevel, IThrowableProxy tp) instead. */ public static void subjoinSTEPArray(StringBuilder sb, IThrowableProxy tp) { // not called anymore - but it is public subjoinSTEPArray(sb, REGULAR_EXCEPTION_INDENT, tp); }
private static void recursiveAppend(StringBuilder sb, String prefix, int indent, IThrowableProxy tp) { if(tp == null) return; subjoinFirstLine(sb, prefix, indent, tp); sb.append(CoreConstants.LINE_SEPARATOR); subjoinSTEPArray(sb, indent, tp); IThrowableProxy[] suppressed = tp.getSuppressed(); if(suppressed != null) { for(IThrowableProxy current : suppressed) { recursiveAppend(sb, CoreConstants.SUPPRESSED, indent + SUPPRESSED_EXCEPTION_INDENT, current); } } recursiveAppend(sb, CoreConstants.CAUSED_BY, indent, tp.getCause()); }
/** * @param sb The StringBuilder the STEPs are appended to. * @param tp the IThrowableProxy containing the STEPs. * @deprecated Use subjoinSTEPArray(StringBuilder sb, int indentLevel, IThrowableProxy tp) instead. */ public static void subjoinSTEPArray(StringBuilder sb, IThrowableProxy tp) { // not called anymore - but it is public subjoinSTEPArray(sb, REGULAR_EXCEPTION_INDENT, tp); }
/** * @param sb The StringBuilder the STEPs are appended to. * @param tp the IThrowableProxy containing the STEPs. * @deprecated Use subjoinSTEPArray(StringBuilder sb, int indentLevel, IThrowableProxy tp) instead. */ public static void subjoinSTEPArray(StringBuilder sb, IThrowableProxy tp) { // not called anymore - but it is public subjoinSTEPArray(sb, REGULAR_EXCEPTION_INDENT, tp); }
/** * @param sb The StringBuilder the STEPs are appended to. * @param tp the IThrowableProxy containing the STEPs. * @deprecated Use subjoinSTEPArray(StringBuilder sb, int indentLevel, IThrowableProxy tp) instead. */ public static void subjoinSTEPArray(StringBuilder sb, IThrowableProxy tp) { // not called anymore - but it is public subjoinSTEPArray(sb, REGULAR_EXCEPTION_INDENT, tp); }
/** * @param sb The StringBuilder the STEPs are appended to. * @param tp the IThrowableProxy containing the STEPs. * @deprecated Use subjoinSTEPArray(StringBuilder sb, int indentLevel, IThrowableProxy tp) instead. */ public static void subjoinSTEPArray(StringBuilder sb, IThrowableProxy tp) { // not called anymore - but it is public subjoinSTEPArray(sb, REGULAR_EXCEPTION_INDENT, tp); }
/** * @param sb The StringBuilder the STEPs are appended to. * @param tp the IThrowableProxy containing the STEPs. * @deprecated Use subjoinSTEPArray(StringBuilder sb, int indentLevel, IThrowableProxy tp) instead. */ public static void subjoinSTEPArray(StringBuilder sb, IThrowableProxy tp) { // not called anymore - but it is public subjoinSTEPArray(sb, REGULAR_EXCEPTION_INDENT, tp); }
private String getStackTrace(IThrowableProxy throwableProxy) { StringBuilder stacktrace = new StringBuilder(); ThrowableProxyUtil.subjoinFirstLineRootCauseFirst(stacktrace, throwableProxy); stacktrace.append(CoreConstants.LINE_SEPARATOR); ThrowableProxyUtil.subjoinSTEPArray(stacktrace, 2, throwableProxy); return stacktrace.toString(); }
public String[] getThrowableStrRep() { StringBuilder sb = new StringBuilder(); for (IThrowableProxy tp = event.getThrowableProxy(); tp != null; tp = tp.getCause()) { ThrowableProxyUtil.subjoinFirstLine(sb, tp); sb.append(CoreConstants.LINE_SEPARATOR); ThrowableProxyUtil.subjoinSTEPArray(sb, ThrowableProxyUtil.REGULAR_EXCEPTION_INDENT, tp); } return sb.toString().split(CoreConstants.LINE_SEPARATOR); }
private static void recursiveAppend(StringBuilder sb, String prefix, int indent, IThrowableProxy tp) { if(tp == null) return; subjoinFirstLine(sb, prefix, indent, tp); sb.append(CoreConstants.LINE_SEPARATOR); subjoinSTEPArray(sb, indent, tp); IThrowableProxy[] suppressed = tp.getSuppressed(); if(suppressed != null) { for(IThrowableProxy current : suppressed) { recursiveAppend(sb, CoreConstants.SUPPRESSED, indent + SUPPRESSED_EXCEPTION_INDENT, current); } } recursiveAppend(sb, CoreConstants.CAUSED_BY, indent, tp.getCause()); }
private static void recursiveAppend(StringBuilder sb, String prefix, int indent, IThrowableProxy tp) { if (tp == null) return; subjoinFirstLine(sb, prefix, indent, tp); sb.append(CoreConstants.LINE_SEPARATOR); subjoinSTEPArray(sb, indent, tp); IThrowableProxy[] suppressed = tp.getSuppressed(); if (suppressed != null) { for (IThrowableProxy current : suppressed) { recursiveAppend(sb, CoreConstants.SUPPRESSED, indent + SUPPRESSED_EXCEPTION_INDENT, current); } } recursiveAppend(sb, CoreConstants.CAUSED_BY, indent, tp.getCause()); }
private static void recursiveAppend(StringBuilder sb, String prefix, int indent, IThrowableProxy tp) { if(tp == null) return; subjoinFirstLine(sb, prefix, tp); sb.append(CoreConstants.LINE_SEPARATOR); subjoinSTEPArray(sb, indent, tp); IThrowableProxy[] suppressed = tp.getSuppressed(); if(suppressed != null) { for(IThrowableProxy current : suppressed) { recursiveAppend(sb, CoreConstants.SUPPRESSED, SUPPRESSED_EXCEPTION_INDENT, current); } } recursiveAppend(sb, CoreConstants.CAUSED_BY, REGULAR_EXCEPTION_INDENT, tp.getCause()); }
private static void recursiveAppend(StringBuilder sb, String prefix, int indent, IThrowableProxy tp) { if (tp == null) return; subjoinFirstLine(sb, prefix, indent, tp); sb.append(CoreConstants.LINE_SEPARATOR); subjoinSTEPArray(sb, indent, tp); IThrowableProxy[] suppressed = tp.getSuppressed(); if (suppressed != null) { for (IThrowableProxy current : suppressed) { recursiveAppend(sb, CoreConstants.SUPPRESSED, indent + SUPPRESSED_EXCEPTION_INDENT, current); } } recursiveAppend(sb, CoreConstants.CAUSED_BY, indent, tp.getCause()); }
private static void recursiveAppend(StringBuilder sb, String prefix, int indent, IThrowableProxy tp) { if (tp == null) return; subjoinFirstLine(sb, prefix, indent, tp); sb.append(CoreConstants.LINE_SEPARATOR); subjoinSTEPArray(sb, indent, tp); IThrowableProxy[] suppressed = tp.getSuppressed(); if (suppressed != null) { for (IThrowableProxy current : suppressed) { recursiveAppend(sb, CoreConstants.SUPPRESSED, indent + SUPPRESSED_EXCEPTION_INDENT, current); } } recursiveAppend(sb, CoreConstants.CAUSED_BY, indent, tp.getCause()); }