Class MissingPathVariableException

All Implemented Interfaces:
Serializable, ErrorResponse

public class MissingPathVariableException extends MissingRequestValueException
ServletRequestBindingException subclass that indicates that a path variable expected in the method parameters of an @RequestMapping method is not present among the URI variables extracted from the URL. Typically that means the URI template does not match the path variable name declared on the method parameter.
Since:
4.2
Author:
Rossen Stoyanchev
See Also:
  • Constructor Details

    • MissingPathVariableException

      public MissingPathVariableException(String variableName, MethodParameter parameter)
      Constructor for MissingPathVariableException.
      Parameters:
      variableName - the name of the missing path variable
      parameter - the method parameter
    • MissingPathVariableException

      public MissingPathVariableException(String variableName, MethodParameter parameter, boolean missingAfterConversion)
      Constructor for use when a value was present but converted to null.
      Parameters:
      variableName - the name of the missing path variable
      parameter - the method parameter
      missingAfterConversion - whether the value became null after conversion
      Since:
      5.3.6
  • Method Details