クラス QueryCreationException
java.lang.ObjectSE
java.lang.ThrowableSE
java.lang.ExceptionSE
java.lang.RuntimeExceptionSE
org.springframework.core.NestedRuntimeException
org.springframework.dao.DataAccessException
org.springframework.dao.NonTransientDataAccessException
org.springframework.dao.InvalidDataAccessApiUsageException
org.springframework.data.repository.core.RepositoryCreationException
org.springframework.data.repository.query.QueryCreationException
- 実装されているすべてのインターフェース:
SerializableSE
MethodSE からクエリを作成できない場合にスローされる例外。- 作成者:
- Oliver Gierke, Mark Paluch
- 関連事項:
方法の概要
修飾子と型メソッド説明static QueryCreationExceptioncreate(@Nullable StringSE message, @Nullable ThrowableSE cause, ClassSE<?> repositoryInterface, MethodSE method) static QueryCreationExceptioncreate(QueryMethod method, StringSE message) 新しいQueryCreationExceptionを作成します。static QueryCreationExceptioncreate(QueryMethod method, StringSE message, ThrowableSE cause) static QueryCreationExceptioncreate(QueryMethod method, ThrowableSE cause) static QueryCreationExceptioninvalidProperty(QueryMethod method, StringSE propertyName) 指定されたドメインクラスプロパティを拒否します。クラス RepositoryCreationException から継承されたメソッド
getRepositoryInterfaceクラス NestedRuntimeException から継承されたメソッド
contains, getMostSpecificCause, getRootCause
メソッドの詳細
invalidProperty
指定されたドメインクラスプロパティを拒否します。- パラメーター:
method- 例外を作成するQueryMethod。propertyName- 見つからなかったプロパティ名。- 戻り値:
QueryCreationException
create
新しいQueryCreationExceptionを作成します。- パラメーター:
method- 例外を作成するQueryMethod。message- 使用するメッセージ。- 戻り値:
QueryCreationException
create
- パラメーター:
method- 例外の原因となったクエリメソッド。cause- 使用中のデータアクセス API の根本原因。- 戻り値:
QueryCreationException
create
public static QueryCreationException create(QueryMethod method, StringSE message, ThrowableSE cause) - パラメーター:
method- 例外の原因となったクエリメソッド。message- 詳細メッセージ。cause- 使用中のデータアクセス API の根本原因。- 戻り値:
QueryCreationException- 導入:
- 4.0
create
public static QueryCreationException create(@Nullable StringSE message, @Nullable ThrowableSE cause, ClassSE<?> repositoryInterface, MethodSE method) - パラメーター:
message- 詳細メッセージ。cause- 使用中のデータアクセス API の根本原因。repositoryInterface- リポジトリインターフェース。method- 例外の原因となったクエリメソッド。- 戻り値:
QueryCreationException- 導入:
- 2.5
getMethod
- 戻り値:
- 例外の原因となったメソッド。
- 導入:
- 2.5
getLocalizedMessage
- オーバーライド:
- クラス
ThrowableSEのgetLocalizedMessage