Class ServerErrorException
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.ServerErrorException
- All Implemented Interfaces:
- Serializable, ErrorResponse
Exception for an 
HttpStatus.INTERNAL_SERVER_ERROR that exposes extra
information about a controller method that failed, or a controller method
argument that could not be resolved.- Since:
- 5.0
- Author:
- Rossen Stoyanchev
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface ErrorResponseErrorResponse.Builder, ErrorResponse.Interceptor
- 
Constructor SummaryConstructorsConstructorDescriptionServerErrorException(String reason, @Nullable Throwable cause) Constructor for a 500 error with a reason and an optional cause.ServerErrorException(String reason, Method handlerMethod, @Nullable Throwable cause) Constructor for a 500 error with a handlerMethodand an optional cause.ServerErrorException(String reason, MethodParameter parameter, @Nullable Throwable cause) Constructor for a 500 error with aMethodParameterand an optional cause.
- 
Method SummaryModifier and TypeMethodDescriptionReturn the handler method associated with the error, if any.Return the specific method parameter associated with the 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- 
ServerErrorException
- 
ServerErrorException
- 
ServerErrorExceptionConstructor for a 500 error with aMethodParameterand an optional cause.
 
- 
- 
Method Details- 
getHandlerMethod
- 
getMethodParameterReturn the specific method parameter associated with the error, if any.
 
-