Top Description Fields Constructors Methods
ch.qos.logback.classic.spi

public Class ThrowableProxyUtil

extends Object
Class Inheritance
Imports
ch.qos.logback.core.CoreConstants

Convert a throwable into an array of ThrowableDataPoint objects.
Author
Ceki Gülcü

Field Summary

Modifier and TypeField and Description
private static final int
public static final int
public static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String
public static void
build(ThrowableProxy nestedTP, Throwable nestedThrowable, ThrowableProxy parentTP)

pack-priv static int
public static void
indent(StringBuilder buf, int indent)

private static void
pack-priv static StackTraceElementProxy[]
private static void
private static void
public static void
public static void
public static void
public static void
public static void
subjoinSTEPArray(StringBuilder
The StringBuilder the STEPs are appended to.
sb
,
IThrowableProxy
the IThrowableProxy containing the STEPs.
tp
)

Deprecated Use subjoinSTEPArray(StringBuilder sb, int indentLevel, IThrowableProxy tp) instead.
public static void
subjoinSTEPArray(StringBuilder
The StringBuilder the STEPs are appended to.
sb
,
int
indentation level used for the STEPs, usually REGULAR_EXCEPTION_INDENT.
indentLevel
,
IThrowableProxy
the IThrowableProxy containing the STEPs.
tp
)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BUILDER_CAPACITYback to summary
private static final int BUILDER_CAPACITY
REGULAR_EXCEPTION_INDENTback to summary
public static final int REGULAR_EXCEPTION_INDENT
SUPPRESSED_EXCEPTION_INDENTback to summary
public static final int SUPPRESSED_EXCEPTION_INDENT

Constructor Detail

ThrowableProxyUtilback to summary
public ThrowableProxyUtil()

Method Detail

asStringback to summary
public static String asString(IThrowableProxy tp)
buildback to summary
public static void build(ThrowableProxy nestedTP, Throwable nestedThrowable, ThrowableProxy parentTP)
findNumberOfCommonFramesback to summary
pack-priv static int findNumberOfCommonFrames(StackTraceElement[] steArray, StackTraceElementProxy[] parentSTEPArray)
indentback to summary
public static void indent(StringBuilder buf, int indent)
recursiveAppendback to summary
private static void recursiveAppend(StringBuilder sb, String prefix, int indent, IThrowableProxy tp)
steArrayToStepArrayback to summary
pack-priv static StackTraceElementProxy[] steArrayToStepArray(StackTraceElement[] stea)
subjoinExceptionMessageback to summary
private static void subjoinExceptionMessage(StringBuilder buf, IThrowableProxy tp)
subjoinFirstLineback to summary
private static void subjoinFirstLine(StringBuilder buf, String prefix, int indent, IThrowableProxy tp)
subjoinFirstLineback to summary
public static void subjoinFirstLine(StringBuilder buf, IThrowableProxy tp)
subjoinFirstLineRootCauseFirstback to summary
public static void subjoinFirstLineRootCauseFirst(StringBuilder buf, IThrowableProxy tp)
subjoinPackagingDataback to summary
public static void subjoinPackagingData(StringBuilder builder, StackTraceElementProxy step)
subjoinSTEPback to summary
public static void subjoinSTEP(StringBuilder sb, StackTraceElementProxy step)
subjoinSTEPArrayback to summary
public static void subjoinSTEPArray(StringBuilder sb, IThrowableProxy tp)

Deprecated

Use subjoinSTEPArray(StringBuilder sb, int indentLevel, IThrowableProxy tp) instead.

Parameters
sb:StringBuilder

The StringBuilder the STEPs are appended to.

tp:IThrowableProxy

the IThrowableProxy containing the STEPs.

subjoinSTEPArrayback to summary
public static void subjoinSTEPArray(StringBuilder sb, int indentLevel, IThrowableProxy tp)
Parameters
sb:StringBuilder

The StringBuilder the STEPs are appended to.

indentLevel:int

indentation level used for the STEPs, usually REGULAR_EXCEPTION_INDENT.

tp:IThrowableProxy

the IThrowableProxy containing the STEPs.