Class MissingMatrixVariableException

All Implemented Interfaces:
Serializable, ErrorResponse

public class MissingMatrixVariableException extends MissingRequestValueException
ServletRequestBindingException subclass that indicates that a matrix variable expected in the method parameters of an @RequestMapping method is not present among the matrix variables extracted from the URL.
Since:
5.1
Author:
Juergen Hoeller
See Also:
  • Constructor Details

    • MissingMatrixVariableException

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

      public MissingMatrixVariableException(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 matrix variable
      parameter - the method parameter
      missingAfterConversion - whether the value became null after conversion
      Since:
      5.3.6
  • Method Details

    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
    • getVariableName

      public final String getVariableName()
      Return the expected name of the matrix variable.
    • getParameter

      public final MethodParameter getParameter()
      Return the method parameter bound to the matrix variable.