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, Johannes Englmeier
- See Also:
-
Constructor Summary
ConstructorDescriptionQueryMethodParameterConversionException
(Object source, org.springframework.core.MethodParameter parameter, org.springframework.core.convert.ConversionException cause) Creates a newQueryMethodParameterConversionException
for the given source object,MethodParameter
and root causeConversionException
. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.core.MethodParameter
Returns 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, org.springframework.core.MethodParameter parameter, org.springframework.core.convert.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
public org.springframework.core.MethodParameter getParameter()Returns theMethodParameter
we tried to convert the source value for.- Returns:
- the parameter will never be null.
- See Also:
-