public class ServerWebInputException extends ResponseStatusException
MethodParameter if related to the error).| Constructor and Description |
|---|
ServerWebInputException(java.lang.String reason)
Constructor with an explanation only.
|
ServerWebInputException(java.lang.String reason,
MethodParameter parameter)
Constructor for a 400 error linked to a specific
MethodParameter. |
ServerWebInputException(java.lang.String reason,
MethodParameter parameter,
java.lang.Throwable cause)
Constructor for a 400 error with a root cause.
|
| Modifier and Type | Method and Description |
|---|---|
MethodParameter |
getMethodParameter()
Return the
MethodParameter associated with this error, if any. |
getMessage, getReason, getStatuscontains, getMostSpecificCause, getRootCausepublic ServerWebInputException(java.lang.String reason)
public ServerWebInputException(java.lang.String reason,
@Nullable
MethodParameter parameter)
MethodParameter.public ServerWebInputException(java.lang.String reason,
@Nullable
MethodParameter parameter,
@Nullable
java.lang.Throwable cause)
@Nullable public MethodParameter getMethodParameter()
MethodParameter associated with this error, if any.