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.
MissingMatrixVariableException
| Modifier and Type | Field and Description |
|---|---|
| private final MethodParameter | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | MissingPathVariableException(String
the name of the missing path variable variableName, MethodParameter the method parameter parameter)Constructor for MissingPathVariableException. |
| public | MissingPathVariableException(String
the name of the missing path variable variableName, MethodParameter the method parameter parameter, boolean whether the value became null after conversion missingAfterConversion)Constructor for use when a value was present but converted to |
| Modifier and Type | Method and Description |
|---|---|
| public String | getMessage()
Overrides java. |
| public final MethodParameter | |
| public HttpStatusCode | getStatusCode()
Overrides org. Implements org. |
| public final String |
| parameter | back to summary |
|---|---|
| private final MethodParameter parameter | |
| variableName | back to summary |
|---|---|
| private final String variableName | |
| MissingPathVariableException | back to summary |
|---|---|
| public MissingPathVariableException(String variableName, MethodParameter parameter) Constructor for MissingPathVariableException.
| |
| MissingPathVariableException | back to summary |
|---|---|
| public MissingPathVariableException(String variableName, MethodParameter parameter, boolean missingAfterConversion) Constructor for use when a value was present but converted to
| |
| getMessage | back to summary |
|---|---|
| public String getMessage() Overrides java. Doc from java. Returns the detail message string of this throwable. | |
| getParameter | back to summary |
|---|---|
| public final MethodParameter getParameter() Return the method parameter bound to the path variable. | |
| getStatusCode | back to summary |
|---|---|
| public HttpStatusCode getStatusCode() Overrides org. Implements org. Doc from org. Return the HTTP status code to use for the response.
| |
| getVariableName | back to summary |
|---|---|
| public final String getVariableName() Return the expected name of the path variable. | |