Package org.springframework.web.bind
Class MissingMatrixVariableException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- javax.servlet.ServletException
- org.springframework.web.util.NestedServletException
- org.springframework.web.bind.ServletRequestBindingException
- org.springframework.web.bind.MissingMatrixVariableException
- All Implemented Interfaces:
Serializable
public class MissingMatrixVariableException extends ServletRequestBindingException
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:
MissingPathVariableException
, Serialized Form
Constructor Summary
Constructors Constructor Description MissingMatrixVariableException(String variableName, MethodParameter parameter)
Constructor for MissingMatrixVariableException.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
Return the detail message, including the message from the nested exception if there is one.MethodParameter
getParameter()
Return the method parameter bound to the matrix variable.String
getVariableName()
Return the expected name of the matrix variable.Methods inherited from class javax.servlet.ServletException
getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Constructor Detail
MissingMatrixVariableException
public MissingMatrixVariableException(String variableName, MethodParameter parameter)
Constructor for MissingMatrixVariableException.- Parameters:
variableName
- the name of the missing matrix variableparameter
- the method parameter
Method Detail
getMessage
public String getMessage()
Description copied from class:NestedServletException
Return the detail message, including the message from the nested exception if there is one.- Overrides:
getMessage
in classNestedServletException
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.