Package org.springframework.web.bind
Class MissingServletRequestParameterException
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.MissingServletRequestParameterException
- All Implemented Interfaces:
- Serializable,- ErrorResponse
ServletRequestBindingException subclass that indicates a missing parameter.- Since:
- 2.0.2
- Author:
- Juergen Hoeller
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.springframework.web.ErrorResponseErrorResponse.Builder
- 
Constructor SummaryConstructorsConstructorDescriptionMissingServletRequestParameterException(String parameterName, String parameterType) Constructor for MissingServletRequestParameterException.MissingServletRequestParameterException(String parameterName, String parameterType, boolean missingAfterConversion) Constructor for use when a value was present but converted tonull.
- 
Method SummaryMethods inherited from class org.springframework.web.bind.MissingRequestValueExceptionisMissingAfterConversionMethods inherited from class org.springframework.web.bind.ServletRequestBindingExceptiongetBody, getDetailMessageArguments, getDetailMessageCode, getStatusCodeMethods inherited from class jakarta.servlet.ServletExceptiongetRootCauseMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.web.ErrorResponsegetDetailMessageArguments, getHeaders, getTitleMessageCode, updateAndGetBody
- 
Constructor Details- 
MissingServletRequestParameterExceptionConstructor for MissingServletRequestParameterException.- Parameters:
- parameterName- the name of the missing parameter
- parameterType- the expected type of the missing parameter
 
- 
MissingServletRequestParameterExceptionpublic MissingServletRequestParameterException(String parameterName, String parameterType, boolean missingAfterConversion) Constructor for use when a value was present but converted tonull.- Parameters:
- parameterName- the name of the missing parameter
- parameterType- the expected type of the missing parameter
- missingAfterConversion- whether the value became null after conversion
- Since:
- 5.3.6
 
 
- 
- 
Method Details- 
getMessage- Overrides:
- getMessagein class- Throwable
 
- 
getParameterNameReturn the name of the offending parameter.
- 
getParameterTypeReturn the expected type of the offending parameter.
 
-