クラス TypeMismatchException
- 実装されたすべてのインターフェース:
SerializableSE
Bean プロパティを設定しようとしたときに、型の不一致でスローされた例外。
- 作成者:
- Rod Johnson, Juergen Hoeller
- 関連事項:
フィールドサマリー
コンストラクターのサマリー
コンストラクター説明TypeMismatchException
(PropertyChangeEventSE propertyChangeEvent, ClassSE<?> requiredType) 新しいTypeMismatchException
を作成します。TypeMismatchException
(PropertyChangeEventSE propertyChangeEvent, ClassSE<?> requiredType, ThrowableSE cause) 新しいTypeMismatchException
を作成します。TypeMismatchException
(ObjectSE value, ClassSE<?> requiredType) PropertyChangeEvent
なしで新しいTypeMismatchException
を作成します。TypeMismatchException
(ObjectSE value, ClassSE<?> requiredType, ThrowableSE cause) PropertyChangeEvent
なしで新しいTypeMismatchException
を作成します。方法の概要
修飾子と型メソッド説明この型の例外に対応するエラーコードを返します。影響を受けるプロパティの名前を返します(利用可能な場合)。ClassSE<?>
必要なターゲット型があれば、それを返します。getValue()
問題のある値を返します(null
の場合があります)。void
initPropertyName
(StringSE propertyName) PropertyChangeEvent
SE を介して初期化する代わりに、getPropertyName()
を介して公開するために、この例外のプロパティ名を初期化します。クラス org.springframework.beans.PropertyAccessException から継承されたメソッド
getPropertyChangeEvent
クラス org.springframework.core.NestedRuntimeException から継承されたメソッド
contains, getMostSpecificCause, getRootCause
クラス java.lang.ThrowableSE から継承されたメソッド
addSuppressedSE, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCauseSE, printStackTrace, printStackTraceSE, printStackTraceSE, setStackTraceSE, toString
フィールドの詳細
ERROR_CODE
型の不一致エラーが登録されるエラーコード。- 関連事項:
コンストラクターの詳細
TypeMismatchException
新しいTypeMismatchException
を作成します。- パラメーター:
propertyChangeEvent
- 問題の原因となった PropertyChangeEventrequiredType
- 必要なターゲット型
TypeMismatchException
public TypeMismatchException(PropertyChangeEventSE propertyChangeEvent, @Nullable ClassSE<?> requiredType, @Nullable ThrowableSE cause) 新しいTypeMismatchException
を作成します。- パラメーター:
propertyChangeEvent
- 問題の原因となった PropertyChangeEventrequiredType
- 必要なターゲット型 (または、不明の場合はnull
)cause
- 根本原因 (null
の場合があります)
TypeMismatchException
PropertyChangeEvent
なしで新しいTypeMismatchException
を作成します。- パラメーター:
value
- 変換できなかった問題のある値 (null
の場合があります)requiredType
- 必要なターゲット型 (または、不明の場合はnull
)- 関連事項:
TypeMismatchException
public TypeMismatchException(@Nullable ObjectSE value, @Nullable ClassSE<?> requiredType, @Nullable ThrowableSE cause) PropertyChangeEvent
なしで新しいTypeMismatchException
を作成します。- パラメーター:
value
- 変換できなかった問題のある値 (null
の場合があります)requiredType
- 必要なターゲット型 (または、不明の場合はnull
)cause
- 根本原因 (null
の場合があります)- 関連事項:
メソッドの詳細
initPropertyName
PropertyChangeEvent
SE を介して初期化する代わりに、getPropertyName()
を介して公開するために、この例外のプロパティ名を初期化します。- パラメーター:
propertyName
- 公開するプロパティ名- 導入:
- 5.0.4
- 関連事項:
getPropertyName
影響を受けるプロパティの名前を返します(利用可能な場合)。- オーバーライド:
- クラス
PropertyAccessException
のgetPropertyName
getValue
問題のある値を返します(null
の場合があります)。- オーバーライド:
- クラス
PropertyAccessException
のgetValue
getRequiredType
必要なターゲット型があれば、それを返します。getErrorCode
クラスからコピーされた説明:PropertyAccessException
この型の例外に対応するエラーコードを返します。- 次で指定:
- クラス
PropertyAccessException
のgetErrorCode