Package org.springframework.web.bind
Class MissingMatrixVariableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jakarta.servlet.ServletException
org.springframework.web.bind.ServletRequestBindingException
org.springframework.web.bind.MissingRequestValueException
org.springframework.web.bind.MissingMatrixVariableException
- All Implemented Interfaces:
Serializable
,ErrorResponse
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 Summary
ConstructorDescriptionMissingMatrixVariableException
(String variableName, MethodParameter parameter) Constructor for MissingMatrixVariableException.MissingMatrixVariableException
(String variableName, MethodParameter parameter, boolean missingAfterConversion) Constructor for use when a value was present but converted tonull
. -
Method Summary
Modifier and TypeMethodDescriptionfinal MethodParameter
Return the method parameter bound to the matrix variable.final String
Return the expected name of the matrix variable.Methods inherited from class org.springframework.web.bind.MissingRequestValueException
isMissingAfterConversion
Methods inherited from class org.springframework.web.bind.ServletRequestBindingException
getBody, getDetailMessageArguments, getDetailMessageCode, getStatusCode
Methods inherited from class jakarta.servlet.ServletException
getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.web.ErrorResponse
getDetailMessageArguments, getHeaders
-
Constructor Details
-
MissingMatrixVariableException
Constructor for MissingMatrixVariableException.- Parameters:
variableName
- the name of the missing matrix variableparameter
- the method parameter
-
MissingMatrixVariableException
public MissingMatrixVariableException(String variableName, MethodParameter parameter, boolean missingAfterConversion) Constructor for use when a value was present but converted tonull
.- Parameters:
variableName
- the name of the missing matrix variableparameter
- the method parametermissingAfterConversion
- whether the value became null after conversion- Since:
- 5.3.6
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
-
getVariableName
Return the expected name of the matrix variable. -
getParameter
Return the method parameter bound to the matrix variable.
-