Package ch.qos.logback.classic.spi
Class ThrowableProxyUtil
java.lang.Object
ch.qos.logback.classic.spi.ThrowableProxyUtil
Convert a throwable into an array of ThrowableDataPoint objects.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic voidbuild(ThrowableProxy nestedTP, Throwable nestedThrowable, ThrowableProxy parentTP) (package private) static intfindNumberOfCommonFrames(StackTraceElement[] steArray, StackTraceElementProxy[] parentSTEPArray) static voidindent(StringBuilder buf, int indent) private static voidrecursiveAppend(StringBuilder sb, String prefix, int indent, IThrowableProxy tp) (package private) static StackTraceElementProxy[]steArrayToStepArray(StackTraceElement[] stea) private static voidstatic voidsubjoinFirstLine(StringBuilder buf, IThrowableProxy tp) private static voidsubjoinFirstLine(StringBuilder buf, String prefix, int indent, IThrowableProxy tp) static voidstatic voidsubjoinPackagingData(StringBuilder builder, StackTraceElementProxy step) static voidsubjoinSTEP(StringBuilder sb, StackTraceElementProxy step) static voidsubjoinSTEPArray(StringBuilder sb, int indentLevel, IThrowableProxy tp) static voidDeprecated.Use subjoinSTEPArray(StringBuilder sb, int indentLevel, IThrowableProxy tp) instead.
-
Field Details
-
REGULAR_EXCEPTION_INDENT
public static final int REGULAR_EXCEPTION_INDENT- See Also:
-
SUPPRESSED_EXCEPTION_INDENT
public static final int SUPPRESSED_EXCEPTION_INDENT- See Also:
-
BUILDER_CAPACITY
private static final int BUILDER_CAPACITY- See Also:
-
-
Constructor Details
-
ThrowableProxyUtil
public ThrowableProxyUtil()
-
-
Method Details
-
build
public static void build(ThrowableProxy nestedTP, Throwable nestedThrowable, ThrowableProxy parentTP) -
steArrayToStepArray
-
findNumberOfCommonFrames
static int findNumberOfCommonFrames(StackTraceElement[] steArray, StackTraceElementProxy[] parentSTEPArray) -
asString
-
recursiveAppend
private static void recursiveAppend(StringBuilder sb, String prefix, int indent, IThrowableProxy tp) -
indent
-
subjoinFirstLine
private static void subjoinFirstLine(StringBuilder buf, String prefix, int indent, IThrowableProxy tp) -
subjoinPackagingData
-
subjoinSTEP
-
subjoinSTEPArray
Deprecated.Use subjoinSTEPArray(StringBuilder sb, int indentLevel, IThrowableProxy tp) instead.- Parameters:
sb- The StringBuilder the STEPs are appended to.tp- the IThrowableProxy containing the STEPs.
-
subjoinSTEPArray
- Parameters:
sb- The StringBuilder the STEPs are appended to.indentLevel- indentation level used for the STEPs, usually REGULAR_EXCEPTION_INDENT.tp- the IThrowableProxy containing the STEPs.
-
subjoinFirstLine
-
subjoinFirstLineRootCauseFirst
-
subjoinExceptionMessage
-