Package org.springframework.web.server
Class ServerWebInputException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.web.server.ResponseStatusException
org.springframework.web.server.ServerWebInputException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- WebExchangeBindException
Exception for errors that fit response status 400 (bad request) for use in
 Spring Web applications. The exception provides additional fields (e.g.
 an optional 
MethodParameter if related to the error).- Since:
- 5.0
- Author:
- Rossen Stoyanchev
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionServerWebInputException(String reason) Constructor with an explanation only.ServerWebInputException(String reason, MethodParameter parameter) Constructor for a 400 error linked to a specificMethodParameter.ServerWebInputException(String reason, MethodParameter parameter, Throwable cause) Constructor for a 400 error with a root cause.
- 
Method SummaryModifier and TypeMethodDescriptionReturn theMethodParameterassociated with this error, if any.Methods inherited from class org.springframework.web.server.ResponseStatusExceptiongetMessage, getRawStatusCode, getReason, getResponseHeaders, getStatusMethods 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, toString
- 
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.
 
- 
- 
Method Details- 
getMethodParameterReturn theMethodParameterassociated with this error, if any.
 
-