Package org.forgerock.openig.fapi.error
Class FapiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.forgerock.openig.fapi.error.FapiException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AuthorizationRequestException,ClientCertificateException,InvalidSoftwareStatementException,ManageApiClientException,RegistrationRequestException,UnapprovedSoftwareStatementException
An abstract exception used to define proper error code and description during FAPI request.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFapiException(String errorCode, String errorDescription) Constructs a newFapiExceptionwith the specified error code and description.protectedFapiException(String errorCode, String errorDescription, Throwable cause) Constructs a newFapiExceptionwith the specified error code, description, and cause. -
Method Summary
Modifier and TypeMethodDescriptionReturns the errorCode.Returns the error description.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FapiException
Constructs a newFapiExceptionwith the specified error code and description.- Parameters:
errorCode- the error codeerrorDescription- the error description
-
FapiException
Constructs a newFapiExceptionwith the specified error code, description, and cause.- Parameters:
errorCode- the error codeerrorDescription- the error descriptioncause- the cause
-
-
Method Details
-
getErrorCode
Returns the errorCode.- Returns:
- the errorCode
-
getErrorDescription
Returns the error description.- Returns:
- the error description
-