クラス NotWritablePropertyException
- 実装されたすべてのインターフェース:
SerializableSE
書き込み可能でないプロパティの値を設定しようとすると例外がスローされます(通常、setter メソッドがないため)。
- 作成者:
- Rod Johnson, Alef Arendsen, Arjen Poutsma
- 関連事項:
コンストラクターのサマリー
コンストラクター説明NotWritablePropertyException
(ClassSE<?> beanClass, StringSE propertyName) 新しい NotWritablePropertyException を作成します。NotWritablePropertyException
(ClassSE<?> beanClass, StringSE propertyName, StringSE msg) 新しい NotWritablePropertyException を作成します。NotWritablePropertyException
(ClassSE<?> beanClass, StringSE propertyName, StringSE msg, StringSE[] possibleMatches) 新しい NotWritablePropertyException を作成します。NotWritablePropertyException
(ClassSE<?> beanClass, StringSE propertyName, StringSE msg, ThrowableSE cause) 新しい NotWritablePropertyException を作成します。方法の概要
クラス org.springframework.beans.InvalidPropertyException から継承されたメソッド
getBeanClass, getPropertyName
クラス org.springframework.core.NestedRuntimeException から継承されたメソッド
contains, getMostSpecificCause, getRootCause
クラス java.lang.ThrowableSE から継承されたメソッド
addSuppressedSE, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCauseSE, printStackTrace, printStackTraceSE, printStackTraceSE, setStackTraceSE, toString
コンストラクターの詳細
NotWritablePropertyException
新しい NotWritablePropertyException を作成します。- パラメーター:
beanClass
- 問題のある Bean クラスpropertyName
- 問題のプロパティ名
NotWritablePropertyException
新しい NotWritablePropertyException を作成します。- パラメーター:
beanClass
- 問題のある Bean クラスpropertyName
- 問題のプロパティ名msg
- 詳細メッセージ
NotWritablePropertyException
public NotWritablePropertyException(ClassSE<?> beanClass, StringSE propertyName, StringSE msg, ThrowableSE cause) 新しい NotWritablePropertyException を作成します。- パラメーター:
beanClass
- 問題のある Bean クラスpropertyName
- 問題のプロパティ名msg
- 詳細メッセージcause
- 根本原因
NotWritablePropertyException
public NotWritablePropertyException(ClassSE<?> beanClass, StringSE propertyName, StringSE msg, StringSE[] possibleMatches) 新しい NotWritablePropertyException を作成します。- パラメーター:
beanClass
- 問題のある Bean クラスpropertyName
- 問題のプロパティ名msg
- 詳細メッセージpossibleMatches
- 無効なプロパティ名と厳密に一致する実際の Bean プロパティ名の提案
メソッドの詳細
getPossibleMatches
無効なプロパティ名が存在する場合、それと厳密に一致する実際の Bean プロパティ名の提案を返します。