Package org.springframework.web.bind
Class MissingRequestValueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jakarta.servlet.ServletException
org.springframework.web.util.NestedServletException
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the request value was present but converted tonull, e.g.Methods inherited from class org.springframework.web.bind.ServletRequestBindingException
getBody, getRawStatusCodeMethods inherited from class org.springframework.web.util.NestedServletException
getMessageMethods inherited from class jakarta.servlet.ServletException
getRootCauseMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.web.ErrorResponse
getHeaders, getStatus
-
Constructor Details
-
MissingRequestValueException
-
MissingRequestValueException
-
-
Method Details
-
isMissingAfterConversion
public boolean isMissingAfterConversion()Whether the request value was present but converted tonull, e.g. viaorg.springframework.core.convert.support.IdToEntityConverter.
-