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 QueryCreationException
static QueryCreationException
create
(QueryMethod method, String message) Creates a newQueryCreationException
.static QueryCreationException
create
(QueryMethod method, Throwable cause) static QueryCreationException
invalidProperty
(QueryMethod method, String propertyName) Rejects the given domain class property.Methods inherited from class org.springframework.data.repository.core.RepositoryCreationException
getRepositoryInterface
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, 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
-