public class ServerErrorException extends ResponseStatusException
MethodParameter
if related to the error).Constructor and Description |
---|
ServerErrorException(java.lang.String reason)
Constructor with an explanation only.
|
ServerErrorException(java.lang.String reason,
MethodParameter parameter)
Constructor for a 500 error linked to a specific
MethodParameter . |
ServerErrorException(java.lang.String reason,
MethodParameter parameter,
java.lang.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
public ServerErrorException(java.lang.String reason)
public ServerErrorException(java.lang.String reason, MethodParameter parameter)
MethodParameter
.public ServerErrorException(java.lang.String reason, @Nullable MethodParameter parameter, @Nullable java.lang.Throwable cause)
@Nullable public MethodParameter getMethodParameter()
MethodParameter
associated with this error, if any.