|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Error
|
+--org.apache.commons.lang.exception.NestableError
The base class of all errors which can contain other exceptions.
NestableException, Serialized Form| Field Summary | |
protected NestableDelegate |
delegate
The helper instance which contains much of the code which we delegate to. |
| Constructor Summary | |
NestableError()
Constructs a new NestableError without specified
detail message. |
|
NestableError(String msg)
Constructs a new NestableError with specified
detail message. |
|
NestableError(String msg,
Throwable cause)
Constructs a new NestableError with specified
detail message and nested Throwable. |
|
NestableError(Throwable cause)
Constructs a new NestableError with specified
nested Throwable. |
|
| Method Summary | |
Throwable |
getCause()
{@inheritDoc} |
String |
getMessage()
Returns the detail message string of this throwable. |
String |
getMessage(int index)
{@inheritDoc} |
String[] |
getMessages()
{@inheritDoc} |
Throwable |
getThrowable(int index)
{@inheritDoc} |
int |
getThrowableCount()
{@inheritDoc} |
Throwable[] |
getThrowables()
{@inheritDoc} |
int |
indexOfThrowable(Class type)
{@inheritDoc} |
int |
indexOfThrowable(Class type,
int fromIndex)
{@inheritDoc} |
void |
printPartialStackTrace(PrintWriter out)
{@inheritDoc} |
void |
printStackTrace()
{@inheritDoc} |
void |
printStackTrace(PrintStream out)
{@inheritDoc} |
void |
printStackTrace(PrintWriter out)
{@inheritDoc} |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected NestableDelegate delegate
| Constructor Detail |
public NestableError()
NestableError without specified
detail message.public NestableError(String msg)
NestableError with specified
detail message.msg - The error message.public NestableError(Throwable cause)
NestableError with specified
nested Throwable.cause - the exception or error that caused this exception to be
thrown
public NestableError(String msg,
Throwable cause)
NestableError with specified
detail message and nested Throwable.msg - the error messagecause - the exception or error that caused this exception to be
thrown| Method Detail |
public Throwable getCause()
getCause in interface Nestableorg.apache.commons.lang.exception.Nestablepublic String getMessage()
getMessage in interface NestablegetMessage in class Throwablepublic String getMessage(int index)
getMessage in interface Nestableorg.apache.commons.lang.exception.Nestableindex - the index of the Throwable in the chain of
ThrowablesThrowable at the
specified index in the chain does not contain a messageIndexOutOfBoundsException - if the index argument is
negative or not less than the count of Throwables in the
chainpublic String[] getMessages()
getMessages in interface Nestableorg.apache.commons.lang.exception.Nestablepublic Throwable getThrowable(int index)
getThrowable in interface Nestableorg.apache.commons.lang.exception.Nestableindex - the index, numbered from 0, of the Throwable in
the chain of ThrowablesThrowableIndexOutOfBoundsException - if the index argument is
negative or not less than the count of Throwables in the
chainpublic int getThrowableCount()
getThrowableCount in interface Nestableorg.apache.commons.lang.exception.Nestablepublic Throwable[] getThrowables()
getThrowables in interface Nestableorg.apache.commons.lang.exception.NestableThrowablespublic int indexOfThrowable(Class type)
indexOfThrowable in interface Nestableorg.apache.commons.lang.exception.Nestabletype - the type to find, subclasses match, null returns -1
public int indexOfThrowable(Class type,
int fromIndex)
indexOfThrowable in interface Nestableorg.apache.commons.lang.exception.Nestabletype - the type to find, subclasses match, null returns -1fromIndex - the index, numbered from 0, of the starting position in
the chain to be searchedIndexOutOfBoundsException - if the fromIndex argument
is negative or not less than the count of Throwables in the
chainpublic void printStackTrace()
printStackTrace in class Throwablepublic void printStackTrace(PrintStream out)
printStackTrace in interface NestableprintStackTrace in class Throwableorg.apache.commons.lang.exception.Nestableout - PrintStream to use for output.public void printStackTrace(PrintWriter out)
printStackTrace in interface NestableprintStackTrace in class Throwableorg.apache.commons.lang.exception.Nestableout - PrintWriter to use for output.public final void printPartialStackTrace(PrintWriter out)
printPartialStackTrace in interface Nestableorg.apache.commons.lang.exception.Nestableout - The writer to use.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||