Class QueryMethodParameterConversionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.data.repository.support.QueryMethodParameterConversionException
All Implemented Interfaces:
Serializable

public class QueryMethodParameterConversionException extends RuntimeException
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 Details

    • QueryMethodParameterConversionException

      public QueryMethodParameterConversionException(Object source, org.springframework.core.MethodParameter parameter, org.springframework.core.convert.ConversionException cause)
      Creates a new QueryMethodParameterConversionException for the given source object, MethodParameter and root cause ConversionException.
      Parameters:
      source - can be null.
      parameter - the MethodParameter the value should've been converted for, must not be null..
      cause - the original ConversionException, must not be null.
  • Method Details

    • getSource

      public Object getSource()
      Returns the source value that we failed converting.
      Returns:
      the source can be null.
    • getParameter

      public org.springframework.core.MethodParameter getParameter()
      Returns the MethodParameter we tried to convert the source value for.
      Returns:
      the parameter will never be null.
      See Also: