public class ServerErrorException extends ResponseStatusException
HttpStatus.INTERNAL_SERVER_ERROR that exposes extra
information about a controller method that failed, or a controller method
argument that could not be resolved.| Constructor and Description |
|---|
ServerErrorException(java.lang.String reason)
Deprecated.
in favor of
ServerErrorException(String, Throwable) |
ServerErrorException(java.lang.String reason,
MethodParameter parameter)
Deprecated.
|
ServerErrorException(java.lang.String reason,
MethodParameter parameter,
java.lang.Throwable cause)
Constructor for a 500 error with a
MethodParameter and an optional cause. |
ServerErrorException(java.lang.String reason,
java.lang.reflect.Method handlerMethod,
java.lang.Throwable cause)
Constructor for a 500 error with a handler
Method and an optional cause. |
ServerErrorException(java.lang.String reason,
java.lang.Throwable cause)
Constructor for a 500 error with a reason and an optional cause.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.reflect.Method |
getHandlerMethod()
Return the handler method associated with the error, if any.
|
MethodParameter |
getMethodParameter()
Return the specific method parameter associated with the error, if any.
|
getMessage, getReason, getStatuscontains, getMostSpecificCause, getRootCausepublic ServerErrorException(java.lang.String reason,
@Nullable
java.lang.Throwable cause)
public ServerErrorException(java.lang.String reason,
java.lang.reflect.Method handlerMethod,
@Nullable
java.lang.Throwable cause)
Method and an optional cause.public ServerErrorException(java.lang.String reason,
MethodParameter parameter,
@Nullable
java.lang.Throwable cause)
MethodParameter and an optional cause.@Deprecated
public ServerErrorException(java.lang.String reason,
MethodParameter parameter)
ServerErrorException(String, MethodParameter, Throwable)MethodParameter.@Deprecated public ServerErrorException(java.lang.String reason)
ServerErrorException(String, Throwable)@Nullable public java.lang.reflect.Method getHandlerMethod()
@Nullable public MethodParameter getMethodParameter()