Package org.springframework.web.server
Class MissingRequestValueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.web.ErrorResponseException
org.springframework.web.server.ResponseStatusException
org.springframework.web.server.ServerWebInputException
org.springframework.web.server.MissingRequestValueException
- All Implemented Interfaces:
- Serializable,- ErrorResponse
ServerWebInputException subclass that indicates a missing request
 value such as a request header, cookie value, query parameter, etc.- Since:
- 6.0
- Author:
- Rossen Stoyanchev
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.springframework.web.ErrorResponseErrorResponse.Builder
- 
Constructor SummaryConstructorsConstructorDescriptionMissingRequestValueException(String name, Class<?> type, String label, MethodParameter parameter) 
- 
Method SummaryMethods inherited from class org.springframework.web.server.ServerWebInputExceptiongetMethodParameterMethods inherited from class org.springframework.web.server.ResponseStatusExceptiongetHeaders, getMessage, getReason, getResponseHeadersMethods inherited from class org.springframework.web.ErrorResponseExceptiongetBody, getDetailMessageArguments, getDetailMessageCode, getStatusCode, setDetail, setInstance, setTitle, setTypeMethods inherited from class org.springframework.core.NestedRuntimeExceptioncontains, getMostSpecificCause, getRootCauseMethods 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, getTitleMessageCode, updateAndGetBody
- 
Constructor Details- 
MissingRequestValueExceptionpublic MissingRequestValueException(String name, Class<?> type, String label, MethodParameter parameter) 
 
- 
- 
Method Details- 
getNameReturn the name of the missing value, e.g. the name of the missing request header, or cookie, etc.
- 
getTypeReturn the target type the value is converted when present.
- 
getLabelReturn a label that describes the request value, e.g. "request header", "cookie value", etc. Use this to create a custom message.
 
-