HttpStatus#INTERNAL_SERVER_ERROR that exposes extra
information about a controller method that failed, or a controller method
argument that could not be resolved.
| Modifier and Type | Field and Description |
|---|---|
| private final Method | |
| private final MethodParameter |
| Access | Constructor and Description |
|---|---|
| public | ServerErrorException(String reason, Throwable cause)
Constructor for a 500 error with a reason and an optional cause. |
| public | ServerErrorException(String reason, Method handlerMethod, Throwable cause)
Constructor for a 500 error with a handler |
| public | ServerErrorException(String reason, MethodParameter parameter, Throwable cause)
Constructor for a 500 error with a |
| Modifier and Type | Method and Description |
|---|---|
| public Method | |
| public MethodParameter |
| handlerMethod | back to summary |
|---|---|
| private final Method handlerMethod
| |
| parameter | back to summary |
|---|---|
| private final MethodParameter parameter
| |
| ServerErrorException | back to summary |
|---|---|
| public ServerErrorException(String reason, Throwable cause) Constructor for a 500 error with a reason and an optional cause.
| |
| ServerErrorException | back to summary |
|---|---|
| public ServerErrorException(String reason, Method handlerMethod, Throwable cause) Constructor for a 500 error with a handler
| |
| ServerErrorException | back to summary |
|---|---|
| public ServerErrorException(String reason, MethodParameter parameter, Throwable cause) Constructor for a 500 error with a | |
| getHandlerMethod | back to summary |
|---|---|
| public Method getHandlerMethod() Return the handler method associated with the error, if any.
| |
| getMethodParameter | back to summary |
|---|---|
| public MethodParameter getMethodParameter() Return the specific method parameter associated with the error, if any.
| |