|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
org.apache.logging.log4j.core.impl.ThrowableProxy
public class ThrowableProxy
Wraps a Throwable to add packaging information about each stack trace element.
Constructor Summary | |
---|---|
ThrowableProxy(Throwable throwable)
Construct the wrapper for the Throwable that includes packaging data. |
Method Summary | |
---|---|
void |
addSuppressed(Throwable exception)
Added in Java 7. |
Throwable |
fillInStackTrace()
|
void |
formatWrapper(StringBuilder sb,
ThrowableProxy cause)
Formats the specified Throwable. |
Throwable |
getCause()
|
String |
getExtendedStackTrace()
Format the stack trace including packaging information. |
String |
getLocalizedMessage()
|
String |
getMessage()
|
String |
getRootCauseStackTrace()
Format the Throwable that is the cause of this Throwable. |
StackTraceElement[] |
getStackTrace()
|
Throwable[] |
getSuppressed()
Added in Java 7. |
String |
getSuppressedStackTrace()
Format the suppressed Throwables. |
Throwable |
initCause(Throwable throwable)
|
void |
printStackTrace()
|
void |
printStackTrace(PrintStream printStream)
|
void |
printStackTrace(PrintWriter printWriter)
|
void |
setStackTrace(StackTraceElement[] stackTraceElements)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ThrowableProxy(Throwable throwable)
throwable
- The Throwable to wrap.Method Detail |
---|
public void setStackTrace(StackTraceElement[] stackTraceElements)
setStackTrace
in class Throwable
public String getMessage()
getMessage
in class Throwable
public String getLocalizedMessage()
getLocalizedMessage
in class Throwable
public Throwable getCause()
getCause
in class Throwable
public void addSuppressed(Throwable exception)
exception
- A Throwable that was suppressed.public Throwable[] getSuppressed()
public Throwable initCause(Throwable throwable)
initCause
in class Throwable
public String toString()
toString
in class Throwable
public void printStackTrace()
printStackTrace
in class Throwable
public void printStackTrace(PrintStream printStream)
printStackTrace
in class Throwable
public void printStackTrace(PrintWriter printWriter)
printStackTrace
in class Throwable
public Throwable fillInStackTrace()
fillInStackTrace
in class Throwable
public StackTraceElement[] getStackTrace()
getStackTrace
in class Throwable
public String getRootCauseStackTrace()
public void formatWrapper(StringBuilder sb, ThrowableProxy cause)
sb
- StringBuilder to contain the formatted Throwable.cause
- The Throwable to format.public String getExtendedStackTrace()
public String getSuppressedStackTrace()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |