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.MissingPathVariableException,
Serialized Form| Constructor and Description |
|---|
MissingMatrixVariableException(String variableName,
MethodParameter parameter)
Constructor for MissingMatrixVariableException.
|
| Modifier and Type | Method and 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.
|
getRootCauseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MissingMatrixVariableException(String variableName, MethodParameter parameter)
variableName - the name of the missing matrix variableparameter - the method parameterpublic String getMessage()
NestedServletExceptiongetMessage in class NestedServletExceptionpublic final String getVariableName()
public final MethodParameter getParameter()