java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.ibm.crypto.hdwrCCA.provider.JCECCARuntimeException
- All Implemented Interfaces:
Serializable
This class will extend RuntimeException such that an application can retrieve
data returned from service calls made by the IBMJCECCA provider. The message
passed to this class will be displayed by using RuntimeException.
- Since:
- 1.6 (V6.0.1)
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJCECCARuntimeException
(int exception_type, String api_name, String exception_message, int return_code, int reason_code) Creates an instance of JCECCARuntimeException. -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the API service call causing the exception.Gets the exception message displayed.int
Gets the reason code returned from the service call.int
Gets the return code returned from the service call.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ICSF_EXCEPTION
public static final int ICSF_EXCEPTIONException Type (package scope)- See Also:
-
-
Constructor Details
-
JCECCARuntimeException
public JCECCARuntimeException(int exception_type, String api_name, String exception_message, int return_code, int reason_code) Creates an instance of JCECCARuntimeException. The constructor will display the input message and set it's member data.- Parameters:
exception_type
- Identifies the service that is throwing the exceptionapi_name
- Identifies the name of the API service call executing this handlerexception_message
- Identifies the message string to be displayedreturn_code
- Identifies the return code returned from the service callreason_code
- Identifies the reason code returned from the service call
-
-
Method Details
-
getAPIName
Gets the name of the API service call causing the exception.- Returns:
- apiName the name of the API service call
-
getExceptionMessage
Gets the exception message displayed.- Returns:
- message the exception message
-
getReturnCode
public int getReturnCode()Gets the return code returned from the service call.- Returns:
- returnCode the return code
-
getReasonCode
public int getReasonCode()Gets the reason code returned from the service call.- Returns:
- reasonCode the reason code
-