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
ConstructorsConstructorDescriptionQueryMethodParameterConversionException(Object source, org.springframework.core.MethodParameter parameter, org.springframework.core.convert.ConversionException cause) Creates a newQueryMethodParameterConversionExceptionfor the given source object,MethodParameterand root causeConversionException. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.core.MethodParameterReturns theMethodParameterwe 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 newQueryMethodParameterConversionExceptionfor the given source object,MethodParameterand root causeConversionException.- Parameters:
source- can be null.parameter- theMethodParameterthe 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 theMethodParameterwe tried to convert the source value for.- Returns:
- the parameter will never be null.
- See Also:
-