Class QueryMethodParameterConversionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.data.repository.support.QueryMethodParameterConversionException
- All Implemented Interfaces:
Serializable
Exception to represent a failed attempt to convert a source value into a query method parameter.
- Since:
- 1.11
- Author:
- Oliver Gierke
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionQueryMethodParameterConversionException
(Object source, MethodParameter parameter, ConversionException cause) Creates a newQueryMethodParameterConversionException
for the given source object,MethodParameter
and root causeConversionException
. -
Method Summary
Modifier and TypeMethodDescriptionReturns theMethodParameter
we tried to convert the source value for.Returns the source value that we failed converting.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
QueryMethodParameterConversionException
public QueryMethodParameterConversionException(Object source, MethodParameter parameter, ConversionException cause) Creates a newQueryMethodParameterConversionException
for the given source object,MethodParameter
and root causeConversionException
.- Parameters:
source
- can be null.parameter
- theMethodParameter
the value should've been converted for, must not be null..cause
- the originalConversionException
, must not be null.
-
-
Method Details
-
getSource
Returns the source value that we failed converting.- Returns:
- the source can be null.
-
getParameter
Returns theMethodParameter
we tried to convert the source value for.- Returns:
- the parameter will never be null.
- See Also:
-