Package org.springframework.web.bind
Class UnsatisfiedServletRequestParameterException
- 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.UnsatisfiedServletRequestParameterException
- All Implemented Interfaces:
Serializable
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.- Since:
- 3.0
- Author:
- Juergen Hoeller
- See Also:
RequestMapping.params()
, Serialized Form
Constructor Summary
Constructors Constructor Description UnsatisfiedServletRequestParameterException(String[] paramConditions, Map<String,String[]> actualParams)
Create a new UnsatisfiedServletRequestParameterException.UnsatisfiedServletRequestParameterException(List<String[]> paramConditions, Map<String,String[]> actualParams)
Create a new UnsatisfiedServletRequestParameterException.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.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
UnsatisfiedServletRequestParameterException
public UnsatisfiedServletRequestParameterException(String[] paramConditions, Map<String,String[]> actualParams)
Create a new UnsatisfiedServletRequestParameterException.- Parameters:
paramConditions
- the parameter conditions that have been violatedactualParams
- the actual parameter Map associated with the ServletRequest
UnsatisfiedServletRequestParameterException
public UnsatisfiedServletRequestParameterException(List<String[]> paramConditions, Map<String,String[]> actualParams)
Create a new UnsatisfiedServletRequestParameterException.- Parameters:
paramConditions
- all sets of parameter conditions that have been violatedactualParams
- the actual parameter Map associated with the ServletRequest- Since:
- 4.2
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
getParamConditions
public final String[] getParamConditions()
Return the parameter conditions that have been violated or the first group in case of multiple groups.- See Also:
RequestMapping.params()
getParamConditionGroups
public final List<String[]> getParamConditionGroups()
Return all parameter condition groups that have been violated.- Since:
- 4.2
- See Also:
RequestMapping.params()
getActualParams
public final Map<String,String[]> getActualParams()
Return the actual parameter Map associated with the ServletRequest.- See Also:
ServletRequest.getParameterMap()