Class MethodArgumentTypeMismatchException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.beans.BeansException
org.springframework.beans.PropertyAccessException
org.springframework.beans.TypeMismatchException
org.springframework.web.method.annotation.MethodArgumentTypeMismatchException
All Implemented Interfaces:
Serializable

public class MethodArgumentTypeMismatchException extends org.springframework.beans.TypeMismatchException
A TypeMismatchException raised while resolving a controller method argument. Provides access to the target MethodParameter.
Since:
4.2
Author:
Rossen Stoyanchev
See Also:
  • Constructor Details

    • MethodArgumentTypeMismatchException

      public MethodArgumentTypeMismatchException(@Nullable Object value, @Nullable Class<?> requiredType, String name, org.springframework.core.MethodParameter param, Throwable cause)
  • Method Details

    • getName

      public String getName()
      Return the name of the method argument.
    • getParameter

      public org.springframework.core.MethodParameter getParameter()
      Return the target method parameter.