public class UnsatisfiedServletRequestParameterException extends ServletRequestBindingException
ServletRequestBindingException subclass that indicates an unsatisfied
parameter condition, as typically expressed using an @RequestMapping
annotation at the @Controller type level.RequestMapping.params(),
Serialized Form| Constructor and Description |
|---|
UnsatisfiedServletRequestParameterException(List<String[]> paramConditions,
Map<String,String[]> actualParams)
Create a new UnsatisfiedServletRequestParameterException.
|
UnsatisfiedServletRequestParameterException(String[] paramConditions,
Map<String,String[]> actualParams)
Create a new UnsatisfiedServletRequestParameterException.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String[]> |
getActualParams()
Return the actual parameter Map associated with the ServletRequest.
|
String |
getMessage()
Return the detail message, including the message from the nested exception
if there is one.
|
List<String[]> |
getParamConditionGroups()
Return all parameter condition groups that have been violated.
|
String[] |
getParamConditions()
Return the parameter conditions that have been violated or the first group
in case of multiple groups.
|
getRootCauseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic UnsatisfiedServletRequestParameterException(String[] paramConditions, Map<String,String[]> actualParams)
paramConditions - the parameter conditions that have been violatedactualParams - the actual parameter Map associated with the ServletRequestpublic UnsatisfiedServletRequestParameterException(List<String[]> paramConditions, Map<String,String[]> actualParams)
paramConditions - all sets of parameter conditions that have been violatedactualParams - the actual parameter Map associated with the ServletRequestpublic String getMessage()
NestedServletExceptiongetMessage in class NestedServletExceptionpublic final String[] getParamConditions()
RequestMapping.params()public final List<String[]> getParamConditionGroups()
RequestMapping.params()public final Map<String,String[]> getActualParams()
ServletRequest.getParameterMap()