|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.apache.commons.lang.exception.NestableDelegate
| フィールドの概要 | |
private static String |
MUST_BE_THROWABLE
コンストラクタのエラーメッセージ。 |
private Throwable |
nestable
ラップしている例外またはエラーへの参照(これは Nestable の実装である必要があります)。
|
| コンストラクタの概要 | |
(パッケージプライベート) |
NestableDelegate(Nestable nestable)
指定された Nestable を管理する NestableDelegate
のインスタンスを新たに生成します。
|
| メソッドの概要 | |
(パッケージプライベート) String |
getMessage(int index)
内部に保持されている Throwable のうち、0 から始まる指定されたインデックスに該当する
Throwable のメッセージを返します。
|
(パッケージプライベート) String |
getMessage(String baseMsg)
Nestable とネストされた Throwable
に含まれる全てのメッセージを返します。
|
(パッケージプライベート) String[] |
getMessages()
この例外と内部にネストされる Throwable のエラーメッセージをStringの配列に格納して返します。
|
private String[] |
getStackFrames(Throwable t)
指定された Throwable オブジェクトに関連するスタックトレースを捕まえて
スタックフレームのリストに再構成します。
|
(パッケージプライベート) Throwable |
getThrowable(int index)
内部に保持されている Throwable のうち、0 から始まる指定されたインデックスに該当する
Throwable を返します。
|
(パッケージプライベート) int |
getThrowableCount()
このクラスに含まれる Nestable の中の
Throwable の数を返します。
|
(パッケージプライベート) Throwable[] |
getThrowables()
このクラス内の Nestable と、内部にネストされた Throwable
を Throwable の配列に格納して返します。
|
(パッケージプライベート) int |
indexOfThrowable(Class type,
int fromIndex)
このクラスの Nestable の内部にネストされた Throwable
から、最初に見つかった指定された型の、検索開始位置より後ろの
0 から始まるインデックスを返します。
|
void |
printStackTrace()
標準エラー出力にこの例外のスタックトレースを出力します。 |
void |
printStackTrace(PrintStream out)
指定された stream にこの例外のスタックトレースを出力します。 |
void |
printStackTrace(PrintWriter out)
指定された writer にこの例外のスタックトレースを出力します。 |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
private static final transient String MUST_BE_THROWABLE
private Throwable nestable
Nestable の実装である必要があります)。
| コンストラクタの詳細 |
NestableDelegate(Nestable nestable)
Nestable を管理する NestableDelegate
のインスタンスを新たに生成します。
NestableDelegate instance to manage the
specified Nestable.
nestable - the Nestable implementation (must extend
Throwable)| メソッドの詳細 |
String getMessage(int index)
Throwable のうち、0 から始まる指定されたインデックスに該当する
Throwable のメッセージを返します。
Throwable in the chain
of Throwables at the specified index, numbererd from 0.
index - 内部に保持されている Throwable のインデックス
Throwable in the chain of
ThrowablesThrowable
にメッセージが設定されていない場合には null
Throwable at the
specified index in the chain does not contain a messageIndexOutOfBoundsException - index の値がマイナスまたは内部の Throwable
の数が指定された値よりも少ない場合
index argument is
negative or not less than the count of Throwables in the
chainString getMessage(String baseMsg)
Nestable とネストされた Throwable
に含まれる全てのメッセージを返します。
Nestable
and any nested Throwables.
baseMsg - 全てのメッセージを作成する際に使用されるベースメッセージ。
一般的に nestableHelper.getMessage(super.getMessage()) を経由して呼ばれます。
super は Throwable のインスタンスを意味します。
nestableHelper.getMessage(super.getMessage()),
where super is an instance of {@link
java.lang.Throwable}.Throwable
のメッセージを連結したメッセージ
ThrowablesString[] getMessages()
Throwable のエラーメッセージをStringの配列に格納して返します。
メッセージを持たない Throwable のメッセージは null で表現されます。
返される配列の長さは原因の数を示す getThrowableCount() の返す値と一致します。
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 {@link #getThrowableCount()}
operation.
Throwable getThrowable(int index)
Throwable のうち、0 から始まる指定されたインデックスに該当する
Throwable を返します。
Throwable in the chain of
Throwables at the specified index, numbererd from 0.
index - 内部に保持される Throwable の 0 から始まるインデックス
Throwable in
the chain of ThrowablesThrowable
ThrowableIndexOutOfBoundsException - index の値がマイナスまたは内部の Throwable
の数が指定された値よりも少ない場合
index argument is
negative or not less than the count of Throwables in the
chainint getThrowableCount()
Nestable の中の
Throwable の数を返します。
Throwables contained in the
Nestable contained by this delegate.
Throwable[] getThrowables()
Nestable と、内部にネストされた Throwable
を Throwable の配列に格納して返します。
Nestable and any nested
Throwables in an array of Throwables, one
element for each Throwable.
Throwable の配列
Throwables
int indexOfThrowable(Class type,
int fromIndex)
Nestable の内部にネストされた Throwable
から、最初に見つかった指定された型の、検索開始位置より後ろの
0 から始まるインデックスを返します。
該当するものが見つからなかった場合には -1 を返します。
Throwable
that matches the specified type in the chain of Throwables
held in this delegate's Nestable with an index greater than
or equal to the specified index, or -1 if the type is not found.
type - 検索対象となる Class
Class to be foundfromIndex - 検索の開始位置となる 0 から始まるインデックス
IndexOutOfBoundsException - fromIndexの値がマイナスまたは内部の
Throwable の数が指定された値よりも少ない場合
fromIndex argument
is negative or not less than the count of Throwables in the
chainpublic void printStackTrace()
public void printStackTrace(PrintStream out)
out - 出力に使用される PrintStream
PrintStream to use for output.printStackTrace(PrintWriter)public void printStackTrace(PrintWriter out)
out - 出力に使用される PrintWriter
PrintWriter to use for output.private String[] getStackFrames(Throwable t)
Throwable オブジェクトに関連するスタックトレースを捕まえて
スタックフレームのリストに再構成します。
Throwable object, decomposing it into a list of
stack frames.
t - 対象となる Throwable
Throwable.
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||