Class MissingRequestValueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jakarta.servlet.ServletException
org.springframework.web.bind.ServletRequestBindingException
org.springframework.web.bind.MissingRequestValueException
- All Implemented Interfaces:
Serializable, ErrorResponse
- Direct Known Subclasses:
MissingMatrixVariableException, MissingPathVariableException, MissingRequestCookieException, MissingRequestHeaderException, MissingServletRequestParameterException
Base class for
ServletRequestBindingException exceptions that could
not bind because the request value is required but is either missing or
otherwise resolves to null after conversion.- Since:
- 5.3.6
- Author:
- Rossen Stoyanchev
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface ErrorResponse
ErrorResponse.Builder, ErrorResponse.Interceptor -
Constructor Summary
ConstructorsModifierConstructorDescriptionConstructor with a message only.MissingRequestValueException(String msg, boolean missingAfterConversion) Constructor with a message and a flag that indicates whether a value was present but becamenullafter conversion.protectedMissingRequestValueException(String msg, boolean missingAfterConversion, @Nullable String messageDetailCode, Object @Nullable [] messageDetailArguments) Constructor with a givenProblemDetail, and aMessageSourcecode and arguments to resolve the detail message with. -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the request value was present but converted tonull, for example, viaorg.springframework.core.convert.support.IdToEntityConverter.Methods inherited from class ServletRequestBindingException
getBody, getDetailMessageArguments, getDetailMessageCode, getStatusCodeMethods inherited from class jakarta.servlet.ServletException
getRootCauseMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace,