- java.lang.Object
-
- ch.qos.logback.classic.spi.ThrowableProxyUtil
-
public class ThrowableProxyUtil extends Object
Convert a throwable into an array of ThrowableDataPoint objects.- Author:
- Ceki Gülcü
-
-
Field Summary
Fields Modifier and Type Field Description static intREGULAR_EXCEPTION_INDENTstatic intSUPPRESSED_EXCEPTION_INDENT
-
Constructor Summary
Constructors Constructor Description ThrowableProxyUtil()
-
Method Summary
-
-
-
Field Detail
-
REGULAR_EXCEPTION_INDENT
public static final int REGULAR_EXCEPTION_INDENT
- See Also:
- Constant Field Values
-
SUPPRESSED_EXCEPTION_INDENT
public static final int SUPPRESSED_EXCEPTION_INDENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ThrowableProxyUtil
public ThrowableProxyUtil()
-
-
Method Detail
-
build
public static void build(ThrowableProxy nestedTP, Throwable nestedThrowable, ThrowableProxy parentTP)
-
appendNominalFirstLine
public static void appendNominalFirstLine(StringBuilder buf, String classname, String message)
-
asString
public static String asString(IThrowableProxy tp)
-
indent
public static void indent(StringBuilder buf, int indent)
-
subjoinPackagingData
public static void subjoinPackagingData(StringBuilder builder, StackTraceElementProxy step)
-
subjoinSTEP
public static void subjoinSTEP(StringBuilder sb, StackTraceElementProxy step)
-
subjoinSTEPArray
public static void subjoinSTEPArray(StringBuilder sb, IThrowableProxy tp)
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
public static void subjoinSTEPArray(StringBuilder sb, int indentLevel, IThrowableProxy tp)
- 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
public static void subjoinFirstLine(StringBuilder buf, IThrowableProxy tp)
-
subjoinFirstLineRootCauseFirst
public static void subjoinFirstLineRootCauseFirst(StringBuilder buf, IThrowableProxy tp)
-
subjoinExceptionMessage
public static void subjoinExceptionMessage(StringBuilder stringBuilder, IThrowableProxy tp)
-
-