Top Description Fields Constructors Methods
org.jboss.logmanager.formatters

public Class StackTraceFormatter

extends Object
Class Inheritance
Imports
java.util.Collections, .IdentityHashMap, .Set

Formatter used to format the stack trace of an exception.
Author
James R. Perkins

Field Summary

Modifier and TypeField and Description
private final StringBuilder
private static final String
private final Set<Throwable>
private static final String
private int
private final int

Constructor Summary

AccessConstructor and Description
private
StackTraceFormatter(final StringBuilder builder, final int suppressedDepth)

Method Summary

Modifier and TypeMethod and Description
private void
public static void
renderStackTrace(final StringBuilder
the string builder ot append the stack trace to
builder
,
final Throwable
the throwable to render
t
,
final int
the number of suppressed messages to include
suppressedDepth
)

Writes the stack trace into the builder.

pack-priv static void
renderStackTrace(final StringBuilder
the string builder ot append the stack trace to
builder
,
final Throwable
the throwable to render
t
,
final boolean
ignored
extended
,
final int
the number of suppressed messages to include
suppressedDepth
)

Writes the stack trace into the builder.

private void
private void
renderStackTrace(final StackTraceElement[] parentStack, final Throwable child, final String caption, final String prefix)

private void
renderTrivial(final String prefix, final StackTraceElement element)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

builderback to summary
private final StringBuilder builder
CAUSED_BY_CAPTIONback to summary
private static final String CAUSED_BY_CAPTION
seenback to summary
private final Set<Throwable> seen
SUPPRESSED_CAPTIONback to summary
private static final String SUPPRESSED_CAPTION
suppressedCountback to summary
private int suppressedCount
suppressedDepthback to summary
private final int suppressedDepth

Constructor Detail

StackTraceFormatterback to summary
private StackTraceFormatter(final StringBuilder builder, final int suppressedDepth)

Method Detail

newLineback to summary
private void newLine()
renderStackTraceback to summary
public static void renderStackTrace(final StringBuilder builder, final Throwable t, final int suppressedDepth)

Writes the stack trace into the builder.

Parameters
builder:StringBuilder

the string builder ot append the stack trace to

t:Throwable

the throwable to render

suppressedDepth:int

the number of suppressed messages to include

renderStackTraceback to summary
pack-priv static void renderStackTrace(final StringBuilder builder, final Throwable t, final boolean extended, final int suppressedDepth)

Writes the stack trace into the builder.

Parameters
builder:StringBuilder

the string builder ot append the stack trace to

t:Throwable

the throwable to render

extended:boolean

ignored

suppressedDepth:int

the number of suppressed messages to include

renderStackTraceback to summary
private void renderStackTrace(final Throwable t)
renderStackTraceback to summary
private void renderStackTrace(final StackTraceElement[] parentStack, final Throwable child, final String caption, final String prefix)
renderTrivialback to summary
private void renderTrivial(final String prefix, final StackTraceElement element)