public class NestedServletException extends ServletExceptionEE
ServletExceptionEE のサブクラス。プレーンな ServletException は、例外メッセージでも、出力されたスタックトレースでも根本的な原因をまったく明らかにしないことに注意してください。これは、後のサーブレット API バリアント(同じ API バージョンでもベンダーごとに異なる)で修正される可能性がありますが、Servlet 2.4(Spring 3.x で必要な最小バージョン)では確実に利用できないため、自分で行う必要があります。
このクラスは ServletException から派生する必要があるため、このクラスと NestedChecked/RuntimeException クラスの類似性は避けられません。
getMessage(), Throwable.printStackTrace()SE, NestedCheckedException, NestedRuntimeException, 連載形式 | コンストラクターと説明 |
|---|
NestedServletException(StringSE msg) 指定された詳細メッセージを使用して NestedServletException を作成します。 |
NestedServletException(StringSE msg, ThrowableSE cause) 指定された詳細メッセージとネストされた例外を使用して NestedServletException を構築します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
StringSE | getMessage() ネストされた例外がある場合は、その例外からのメッセージを含む詳細メッセージを返します。 |
getRootCauseEEaddSuppressedSE, fillInStackTraceSE, getCauseSE, getLocalizedMessageSE, getStackTraceSE, getSuppressedSE, initCauseSE, printStackTraceSE, printStackTraceSE, printStackTraceSE, setStackTraceSE, toStringSEcloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSEpublic NestedServletException(StringSE msg)
NestedServletException を作成します。msg - 詳細メッセージ public NestedServletException(@Nullable StringSE msg, @Nullable ThrowableSE cause)
NestedServletException を構築します。msg - 詳細メッセージ cause - ネストされた例外 @Nullable public StringSE getMessage()
ThrowableSE の getMessageSE