パッケージ org.springframework.beans

クラス NotWritablePropertyException

実装されたすべてのインターフェース:
SerializableSE

public class NotWritablePropertyException extends InvalidPropertyException
書き込み可能でないプロパティの値を設定しようとすると例外がスローされます(通常、setter メソッドがないため)。
作成者:
Rod Johnson, Alef Arendsen, Arjen Poutsma
関連事項:
  • コンストラクターの詳細

    • NotWritablePropertyException

      public NotWritablePropertyException(ClassSE<?> beanClass, StringSE propertyName)
      新しい NotWritablePropertyException を作成します。
      パラメーター:
      beanClass - 問題のある Bean クラス
      propertyName - 問題のプロパティ名
    • NotWritablePropertyException

      public NotWritablePropertyException(ClassSE<?> beanClass, StringSE propertyName, StringSE msg)
      新しい 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

      @Nullable public StringSE[] getPossibleMatches()
      無効なプロパティ名が存在する場合、それと厳密に一致する実際の Bean プロパティ名の提案を返します。