Class ServerException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.forgerock.oauth2.core.exceptions.OAuth2Exception
-
- org.forgerock.oauth2.core.exceptions.ServerException
-
- All Implemented Interfaces:
Serializable
public class ServerException extends OAuth2Exception
Thrown when any internal server error occurs.- Since:
- 12.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServerException()Constructs a new ServerException with the default message.ServerException(String message)Constructs a new ServerException with the specified message.ServerException(Throwable cause)Constructs a new ServerException with the message from the specified cause.
-
Method Summary
-
Methods inherited from class org.forgerock.oauth2.core.exceptions.OAuth2Exception
getError, getParameterLocation, getStatusCode
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ServerException
public ServerException()
Constructs a new ServerException with the default message.
-
ServerException
public ServerException(String message)
Constructs a new ServerException with the specified message.- Parameters:
message- The reason for the exception.
-
ServerException
public ServerException(Throwable cause)
Constructs a new ServerException with the message from the specified cause.- Parameters:
cause- The cause of the exception.
-
-