クラス NullValueInNestedPathException
- 実装されているすべてのインターフェース:
SerializableSE
有効なネストされたプロパティパスのナビゲーションが NullPointerException に遭遇した場合にスローされる例外。
例: ターゲットオブジェクトの配偶者プロパティの値が null であるため、"spouse.age" のナビゲートが失敗する可能性があります。
- 作成者:
- Rod Johnson, Juergen Hoeller
- 関連事項:
コンストラクターの概要
コンストラクターコンストラクター説明NullValueInNestedPathException(ClassSE<?> beanClass, StringSE propertyName) 新しい NullValueInNestedPathException を作成します。NullValueInNestedPathException(ClassSE<?> beanClass, StringSE propertyName, StringSE msg) 新しい NullValueInNestedPathException を作成します。NullValueInNestedPathException(ClassSE<?> beanClass, StringSE propertyName, StringSE msg, ThrowableSE cause) 新しい NullValueInNestedPathException を作成します。メソッドのサマリー
クラス InvalidPropertyException から継承されたメソッド
getBeanClass, getPropertyNameクラス NestedRuntimeException から継承されたメソッド
contains, getMostSpecificCause, getRootCause
コンストラクターの詳細
NullValueInNestedPathException
NullValueInNestedPathException
NullValueInNestedPathException
public NullValueInNestedPathException(ClassSE<?> beanClass, StringSE propertyName, StringSE msg, ThrowableSE cause) 新しい NullValueInNestedPathException を作成します。- パラメーター:
beanClass- 問題のある Bean クラスpropertyName- 問題のあるプロパティmsg- 詳細メッセージcause- 根本原因- 導入:
- 4.3.2