public class ThrowableProxy extends Object implements Serializable
Constructor and Description |
---|
ThrowableProxy(Throwable throwable)
Construct the wrapper for the Throwable that includes packaging data.
|
Modifier and Type | Method and Description |
---|---|
void |
formatWrapper(StringBuilder sb,
ThrowableProxy cause)
Formats the specified Throwable.
|
void |
formatWrapper(StringBuilder sb,
ThrowableProxy cause,
List<String> packages)
Formats the specified Throwable.
|
ThrowableProxy |
getCause() |
int |
getCommonElementCount()
Return the number of elements that are being ommitted because they are common with the parent Throwable's
stack trace.
|
String |
getExtendedStackTrace()
Format the stack trace including packaging information.
|
String |
getExtendedStackTrace(List<String> packages)
Format the stack trace including packaging information.
|
String |
getName()
Return the FQCN of the Throwable.
|
StackTracePackageElement[] |
getPackageData()
Return the package data associated with the stack trace.
|
String |
getRootCauseStackTrace()
Format the Throwable that is the cause of this Throwable.
|
String |
getRootCauseStackTrace(List<String> packages)
Format the Throwable that is the cause of this Throwable.
|
ThrowableProxy[] |
getSuppressed() |
String |
getSuppressedStackTrace()
Format the suppressed Throwables.
|
Throwable |
getThrowable() |
String |
toString() |
public ThrowableProxy(Throwable throwable)
throwable
- The Throwable to wrap.public Throwable getThrowable()
public ThrowableProxy getCause()
public String getName()
public int getCommonElementCount()
public StackTracePackageElement[] getPackageData()
public String getRootCauseStackTrace()
public String getRootCauseStackTrace(List<String> packages)
packages
- The List of packages to be suppressed from the trace.public void formatWrapper(StringBuilder sb, ThrowableProxy cause)
sb
- StringBuilder to contain the formatted Throwable.cause
- The Throwable to format.public void formatWrapper(StringBuilder sb, ThrowableProxy cause, List<String> packages)
sb
- StringBuilder to contain the formatted Throwable.cause
- The Throwable to format.packages
- The List of packages to be suppressed from the trace.public String getExtendedStackTrace()
public String getExtendedStackTrace(List<String> packages)
packages
- List of packages to be suppressed from the trace.public String getSuppressedStackTrace()
public ThrowableProxy[] getSuppressed()
Copyright © 1999-2014 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.