|
||||||||||
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 FormField 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
thrownpublic 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
thrownMethod Detail |
public Throwable getCause()
getCause
in interface Nestable
org.apache.commons.lang.exception.Nestable
public String getMessage()
getMessage
in interface Nestable
getMessage
in class Throwable
public String getMessage(int index)
getMessage
in interface Nestable
org.apache.commons.lang.exception.Nestable
index
- the index of the Throwable
in the chain of
Throwable
sThrowable
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 Throwable
s in the
chainpublic String[] getMessages()
getMessages
in interface Nestable
org.apache.commons.lang.exception.Nestable
public Throwable getThrowable(int index)
getThrowable
in interface Nestable
org.apache.commons.lang.exception.Nestable
index
- the index, numbered from 0, of the Throwable
in
the chain of Throwable
sThrowable
IndexOutOfBoundsException
- if the index
argument is
negative or not less than the count of Throwable
s in the
chainpublic int getThrowableCount()
getThrowableCount
in interface Nestable
org.apache.commons.lang.exception.Nestable
public Throwable[] getThrowables()
getThrowables
in interface Nestable
org.apache.commons.lang.exception.Nestable
Throwable
spublic int indexOfThrowable(Class type)
indexOfThrowable
in interface Nestable
org.apache.commons.lang.exception.Nestable
type
- the type to find, subclasses match, null returns -1public int indexOfThrowable(Class type, int fromIndex)
indexOfThrowable
in interface Nestable
org.apache.commons.lang.exception.Nestable
type
- 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 Throwable
s in the
chainpublic void printStackTrace()
printStackTrace
in class Throwable
public void printStackTrace(PrintStream out)
printStackTrace
in interface Nestable
printStackTrace
in class Throwable
org.apache.commons.lang.exception.Nestable
out
- PrintStream
to use for output.public void printStackTrace(PrintWriter out)
printStackTrace
in interface Nestable
printStackTrace
in class Throwable
org.apache.commons.lang.exception.Nestable
out
- PrintWriter
to use for output.public final void printPartialStackTrace(PrintWriter out)
printPartialStackTrace
in interface Nestable
org.apache.commons.lang.exception.Nestable
out
- The writer to use.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |