Package com.thalesgroup.gemalto.cas
Class CasException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.thalesgroup.gemalto.cas.CasException
-
- All Implemented Interfaces:
Serializable
public class CasException extends Exception
The exception that will be thrown when a failure occurs during the CAS E2EE operation.- Since:
- 6.1.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CasException.ErrorCode
CAS-specific error codes.
-
Constructor Summary
Constructors Constructor Description CasException(CasException.ErrorCode error)
Constructs CasException with ErrorCode.CasException(CasException.ErrorCode error, Throwable cause)
Constructs CasException with ErrorCode and Throwable object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CasException.ErrorCode
getError()
Returns the ErrorCode of the failed operation.String
getMessage()
Returns the details of the error.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CasException
public CasException(CasException.ErrorCode error)
Constructs CasException with ErrorCode.- Parameters:
error
- The error code
-
CasException
public CasException(CasException.ErrorCode error, Throwable cause)
Constructs CasException with ErrorCode and Throwable object.- Parameters:
error
- The error codecause
- Throwable object
-
-
Method Detail
-
getMessage
@NonNull public String getMessage()
Returns the details of the error.- Overrides:
getMessage
in classThrowable
- Returns:
- The error message.
-
getError
public CasException.ErrorCode getError()
Returns the ErrorCode of the failed operation.- Returns:
CasException.ErrorCode
.
-
-