クラス PropertyReferenceException

java.lang.ObjectSE
java.lang.ThrowableSE
java.lang.ExceptionSE
java.lang.RuntimeExceptionSE
org.springframework.data.mapping.PropertyReferenceException
実装されたすべてのインターフェース:
SerializableSE

public class PropertyReferenceException extends RuntimeExceptionSE
PropertyPath インスタンスの作成時に例外がスローされます。
作成者:
Oliver Gierke, Christoph Strobl, John Blum
関連事項:
  • コンストラクターの詳細

    • PropertyReferenceException

      public PropertyReferenceException(StringSE propertyName, TypeInformation<?> type, ListSE<PropertyPath> alreadyResolvedPah)
      新しい PropertyReferenceException を作成します。
      パラメーター:
      propertyName - 指定された型にないプロパティの名前。null または空であってはなりません。
      type - プロパティが見つからなかった型。null であってはなりません。
      alreadyResolvedPah - 以前に計算された PropertyPath は null であってはなりません。
  • メソッドの詳細

    • getPropertyName

      public StringSE getPropertyName()
      見つからないプロパティの名前を返します。
      戻り値:
      null または空にはなりません。
    • getType

      public TypeInformation<?> getType()
      プロパティが見つからなかった型を返します。
      戻り値:
      null になることはありません。
    • getMessage

      public StringSE getMessage()
      オーバーライド:
      クラス ThrowableSEgetMessage 
    • getBaseProperty

      @Nullable public PropertyPath getBaseProperty()
      これまでに解決できた PropertyPath を返します。
      戻り値:
    • hasDeeperResolutionDepthThan

      public boolean hasDeeperResolutionDepthThan(PropertyReferenceException exception)
      指定された PropertyReferenceException の解決が現在の例外よりも深い(つまり、解決済みのプロパティのパスが長い)かどうかを返します。
      パラメーター:
      exception - null であってはなりません。
      戻り値: