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 ErrorResponseErrorResponse.Builder, ErrorResponse.Interceptor
- 
Constructor SummaryConstructorsConstructorDescriptionMissingRequestValueException(String name, Class<?> type, String label, MethodParameter parameter) 
- 
Method SummaryModifier and TypeMethodDescriptiongetLabel()Return a label that describes the request value, for example, "request header", "cookie value", etc.getName()Return the name of the missing value, for example, the name of the missing request header, or cookie, etc.Class<?> getType()Return the target type the value is converted when present.Methods inherited from class ServerWebInputExceptiongetMethodParameterMethods inherited from class ResponseStatusExceptiongetHeaders, getMessage, getReason, updateAndGetBodyMethods inherited from class ErrorResponseExceptiongetBody, getDetailMessageArguments, getDetailMessageCode, getStatusCode, setDetail, setInstance, setTitle, setTypeMethods inherited from class NestedRuntimeExceptioncontains, getMostSpecificCause, getRootCauseMethods 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, getTitleMessageCode, getTypeMessageCode
- 
Constructor Details- 
MissingRequestValueExceptionpublic MissingRequestValueException(String name, Class<?> type, String label, MethodParameter parameter) 
 
- 
- 
Method Details- 
getNameReturn the name of the missing value, for example, 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, for example, "request header", "cookie value", etc. Use this to create a custom message.
 
-