|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Error
org.apache.commons.lang.exception.NestableError
The base class of all errors which can contain other exceptions.
NestableException,
直列化された形式| フィールドの概要 | |
protected NestableDelegate |
delegate
The helper instance which contains much of the code which we delegate to. |
| コンストラクタの概要 | |
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. |
|
| メソッドの概要 | |
Throwable |
getCause()
Returns the reference to the exception or error that caused the exception implementing the Nestable to be thrown. |
String |
getMessage()
Returns the detail message string of this throwable. |
String |
getMessage(int index)
Returns the error message of the Throwable in the chain
of Throwables at the specified index, numbererd from 0. |
String[] |
getMessages()
Returns the error message of this and any nested Throwables
in an array of Strings, one element for each message. |
Throwable |
getThrowable(int index)
Returns the Throwable in the chain of
Throwables at the specified index, numbererd from 0. |
int |
getThrowableCount()
Returns the number of nested Throwables represented by
this Nestable, including this Nestable. |
Throwable[] |
getThrowables()
Returns this Nestable and any nested Throwables
in an array of Throwables, one element for each
Throwable. |
int |
indexOfThrowable(Class type)
Returns the index, numbered from 0, of the first occurrence of the specified type in the chain of Throwables, or -1 if the
specified type is not found in the chain. |
int |
indexOfThrowable(Class type,
int fromIndex)
Returns the index, numbered from 0, of the first Throwable
that matches the specified type in the chain of Throwables
with an index greater than or equal to the specified index, or -1 if
the type is not found. |
void |
printPartialStackTrace(PrintWriter out)
Prints the stack trace for this exception only--root cause not included--using the provided writer. |
void |
printStackTrace()
|
void |
printStackTrace(PrintStream out)
Prints the stack trace of this exception to the specified print stream. |
void |
printStackTrace(PrintWriter out)
Prints the stack trace of this exception to the specified print writer. |
| クラス java.lang.Throwable から継承したメソッド |
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| フィールドの詳細 |
protected NestableDelegate delegate
| コンストラクタの詳細 |
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| メソッドの詳細 |
public Throwable getCause()
Nestable の記述: Nestable to be thrown.
Nestable 内の getCausepublic String getMessage()
Nestable 内の getMessagepublic String getMessage(int index)
Nestable の記述: Throwable in the chain
of Throwables at the specified index, numbererd from 0.
Nestable 内の getMessageindex - the index of the Throwable in the chain of
Throwables
Throwable at the
specified index in the chain does not contain a messagepublic String[] getMessages()
Nestable の記述: Throwables
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 Nestable.getThrowableCount()
operation.
Nestable 内の getMessagespublic Throwable getThrowable(int index)
Nestable の記述: Throwable in the chain of
Throwables at the specified index, numbererd from 0.
Nestable 内の getThrowableindex - the index, numbered from 0, of the Throwable in
the chain of Throwables
Throwablepublic int getThrowableCount()
Nestable の記述: Throwables represented by
this Nestable, including this Nestable.
Nestable 内の getThrowableCountpublic Throwable[] getThrowables()
Nestable の記述: Nestable and any nested Throwables
in an array of Throwables, one element for each
Throwable.
Nestable 内の getThrowablesThrowablespublic int indexOfThrowable(Class type)
Nestable の記述: Throwables, or -1 if the
specified type is not found in the chain.
Nestable 内の indexOfThrowabletype - Class to be found
public int indexOfThrowable(Class type,
int fromIndex)
Nestable の記述: Throwable
that matches the specified type in the chain of Throwables
with an index greater than or equal to the specified index, or -1 if
the type is not found.
Nestable 内の indexOfThrowabletype - Class to be foundfromIndex - the index, numbered from 0, of the starting position in
the chain to be searched
public void printStackTrace()
public void printStackTrace(PrintStream out)
Nestable の記述:
Nestable 内の printStackTracepublic void printStackTrace(PrintWriter out)
Nestable の記述:
Nestable 内の printStackTracepublic final void printPartialStackTrace(PrintWriter out)
Nestable の記述: NestableDelegate to write
individual stack traces to a buffer. The implementation of
this method should call
super.printStackTrace(out); in most cases.
Nestable 内の printPartialStackTraceout - The writer to use.
|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||