Class UnsatisfiedServletRequestParameterException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jakarta.servlet.ServletException
org.springframework.web.bind.ServletRequestBindingException
org.springframework.web.bind.UnsatisfiedServletRequestParameterException
- All Implemented Interfaces:
- Serializable, ErrorResponse
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:
- 
Nested Class SummaryNested classes/interfaces inherited from interface ErrorResponseErrorResponse.Builder, ErrorResponse.Interceptor
- 
Constructor SummaryConstructorsConstructorDescriptionUnsatisfiedServletRequestParameterException(String[] paramConditions, Map<String, String[]> actualParams) Create a new UnsatisfiedServletRequestParameterException.UnsatisfiedServletRequestParameterException(List<String[]> paramConditions, Map<String, String[]> actualParams) Create a new UnsatisfiedServletRequestParameterException.
- 
Method SummaryModifier and TypeMethodDescriptionReturn the actual parameter Map associated with the ServletRequest.Return all parameter condition groups that have been violated.final String[]Return the parameter conditions that have been violated or the first group in case of multiple groups.Methods inherited from class ServletRequestBindingExceptiongetBody, getDetailMessageArguments, getDetailMessageCode, getStatusCodeMethods inherited from class jakarta.servlet.ServletExceptiongetRootCauseMethods inherited from class ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ErrorResponsegetDetailMessageArguments, getHeaders, getTitleMessageCode, getTypeMessageCode, updateAndGetBody
- 
Constructor Details- 
UnsatisfiedServletRequestParameterExceptionpublic UnsatisfiedServletRequestParameterException(String[] paramConditions, Map<String, String[]> actualParams) Create a new UnsatisfiedServletRequestParameterException.- Parameters:
- paramConditions- the parameter conditions that have been violated
- actualParams- the actual parameter Map associated with the ServletRequest
 
- 
UnsatisfiedServletRequestParameterExceptionpublic UnsatisfiedServletRequestParameterException(List<String[]> paramConditions, Map<String, String[]> actualParams) Create a new UnsatisfiedServletRequestParameterException.- Parameters:
- paramConditions- all sets of parameter conditions that have been violated
- actualParams- the actual parameter Map associated with the ServletRequest
- Since:
- 4.2
 
 
- 
- 
Method Details- 
getMessage- Overrides:
- getMessagein class- Throwable
 
- 
getParamConditionsReturn the parameter conditions that have been violated or the first group in case of multiple groups.- See Also:
 
- 
getParamConditionGroups
- 
getActualParams
 
-