Methods Summary |
---|
public java.lang.Throwable | getCause()Returns the reference to the exception or error that caused the
exception implementing the Nestable to be thrown.
|
public java.lang.String | getMessage()Returns the error message of this and any nested
Throwable .
|
public java.lang.String | getMessage(int index)Returns the error message of the Throwable in the chain
of Throwable s at the specified index, numbererd from 0.
|
public java.lang.String[] | getMessages()Returns the error message of this and any nested Throwable s
in an array of Strings, one element for each message. Any
Throwable not containing a message is represented in the
array by a null. This has the effect of cause the length of the returned
array to be equal to the result of the {@link #getThrowableCount()}
operation.
|
public java.lang.Throwable | getThrowable(int index)Returns the Throwable in the chain of
Throwable s at the specified index, numbererd from 0.
|
public int | getThrowableCount()Returns the number of nested Throwable s represented by
this Nestable , including this Nestable .
|
public java.lang.Throwable[] | getThrowables()Returns this Nestable and any nested Throwable s
in an array of Throwable s, one element for each
Throwable .
|
public int | indexOfThrowable(java.lang.Class type)Returns the index, numbered from 0, of the first occurrence of the
specified type in the chain of Throwable s, or -1 if the
specified type is not found in the chain.
|
public int | indexOfThrowable(java.lang.Class type, int fromIndex)Returns the index, numbered from 0, of the first Throwable
that matches the specified type in the chain of Throwable s
with an index greater than or equal to the specified index, or -1 if
the type is not found.
|
public void | printPartialStackTrace(java.io.PrintWriter out)Prints the stack trace for this exception only--root cause not
included--using the provided writer. Used by {@link
org.apache.commons.lang.exception.NestableDelegate} to write
individual stack traces to a buffer. The implementation of
this method should call
super.printStackTrace(out); in most cases.
|
public void | printStackTrace(java.io.PrintWriter out)Prints the stack trace of this exception to the specified print
writer. Includes information from the exception, if any,
which caused this exception.
|
public void | printStackTrace(java.io.PrintStream out)Prints the stack trace of this exception to the specified print
stream. Includes inforamation from the exception, if any,
which caused this exception.
|