Class ServerWebInputException
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
- All Implemented Interfaces:
- Serializable, ErrorResponse
- Direct Known Subclasses:
- MissingRequestValueException, UnsatisfiedRequestParameterException, WebExchangeBindException
Exception for errors that fit response status 400 (bad request) for use in
Spring Web applications. The exception provides additional fields (for example,
an optional 
MethodParameter if related to the error).- Since:
- 5.0
- Author:
- Rossen Stoyanchev
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface ErrorResponseErrorResponse.Builder, ErrorResponse.Interceptor
- 
Constructor SummaryConstructorsModifierConstructorDescriptionServerWebInputException(String reason) Constructor with an explanation only.ServerWebInputException(String reason, @Nullable MethodParameter parameter) Constructor for a 400 error linked to a specificMethodParameter.ServerWebInputException(String reason, @Nullable MethodParameter parameter, @Nullable Throwable cause) Constructor for a 400 error with a root cause.protectedServerWebInputException(String reason, @Nullable MethodParameter parameter, @Nullable Throwable cause, @Nullable String messageDetailCode, Object @Nullable [] messageDetailArguments) Constructor with a message code and arguments for resolving the error "detail" viaMessageSource.
- 
Method SummaryModifier and TypeMethodDescriptionReturn theMethodParameterassociated with this error, if any.Methods 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- 
ServerWebInputExceptionConstructor with an explanation only.
- 
ServerWebInputExceptionConstructor for a 400 error linked to a specificMethodParameter.
- 
ServerWebInputExceptionpublic ServerWebInputException(String reason, @Nullable MethodParameter parameter, @Nullable Throwable cause) Constructor for a 400 error with a root cause.
- 
ServerWebInputExceptionprotected ServerWebInputException(String reason, @Nullable MethodParameter parameter, @Nullable Throwable cause, @Nullable String messageDetailCode, Object @Nullable [] messageDetailArguments) Constructor with a message code and arguments for resolving the error "detail" viaMessageSource.- Since:
- 6.0
 
 
- 
- 
Method Details- 
getMethodParameterReturn theMethodParameterassociated with this error, if any.
 
-