public class ServerErrorException extends ResponseStatusException
MethodParameter
if related to the error).Constructor and Description |
---|
ServerErrorException(String reason)
Constructor with an explanation only.
|
ServerErrorException(String reason,
MethodParameter parameter)
Constructor for a 500 error linked to a specific
MethodParameter . |
ServerErrorException(String reason,
MethodParameter parameter,
Throwable cause)
Constructor for a 500 error with a root cause.
|
Modifier and Type | Method and Description |
---|---|
MethodParameter |
getMethodParameter()
Return the
MethodParameter associated with this error, if any. |
getMessage, getReason, getStatus
contains, getMostSpecificCause, getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ServerErrorException(String reason)
public ServerErrorException(String reason, MethodParameter parameter)
MethodParameter
.public ServerErrorException(String reason, @Nullable MethodParameter parameter, @Nullable Throwable cause)
@Nullable public MethodParameter getMethodParameter()
MethodParameter
associated with this error, if any.