public abstract class NestedExceptionUtils extends ObjectSE
主にフレームワーク内で使用します。
NestedRuntimeException, NestedCheckedException, NestedServletException| コンストラクターと説明 |
|---|
NestedExceptionUtils() |
| 修飾子と型 | メソッドと説明 |
|---|---|
static StringSE | buildMessage(StringSE message, ThrowableSE cause) 指定された基本メッセージと根本原因のメッセージを作成します。 |
static ThrowableSE | getMostSpecificCause(ThrowableSE original) 特定の例外の最も具体的な原因、つまり、最も内側の原因(根本原因)または例外自体を取得します。 |
static ThrowableSE | getRootCause(ThrowableSE original) 指定された例外の最も内側の原因があれば、それを取得します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE@Nullable public static StringSE buildMessage(@Nullable StringSE message, @Nullable ThrowableSE cause)
message - 基本メッセージ cause - 根本原因 @Nullable public static ThrowableSE getRootCause(@Nullable ThrowableSE original)
original - イントロスペクトの元の例外 null public static ThrowableSE getMostSpecificCause(ThrowableSE original)
根本原因がない場合、元の例外にフォールバックするという点で getRootCause(java.lang.Throwable) と異なります。
original - イントロスペクトの元の例外 null)