Class QueryCreationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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
- All Implemented Interfaces:
Serializable
Exception to be thrown if a query cannot be created from a
Method.- Author:
- Oliver Gierke, Mark Paluch
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic QueryCreationExceptionstatic QueryCreationExceptioncreate(QueryMethod method, String message) Creates a newQueryCreationException.static QueryCreationExceptioncreate(QueryMethod method, Throwable cause) static QueryCreationExceptioninvalidProperty(QueryMethod method, String propertyName) Rejects the given domain class property.Methods inherited from class org.springframework.data.repository.core.RepositoryCreationException
getRepositoryInterfaceMethods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCauseMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
invalidProperty
Rejects the given domain class property.- Parameters:
method-propertyName-- Returns:
-
create
Creates a newQueryCreationException.- Parameters:
method-message-- Returns:
-
create
- Parameters:
method-cause-- Returns:
-
create
public static QueryCreationException create(String message, Throwable cause, Class<?> repositoryInterface, Method method) - Parameters:
method-cause-- Returns:
- Since:
- 2.5
-
getMethod
- Returns:
- Since:
- 2.5
-