- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.ibm.crypto.hdwrCCA.provider.JCECCARuntimeException
-
- All Implemented Interfaces:
java.io.Serializable
public class JCECCARuntimeException extends java.lang.RuntimeException
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:
RuntimeException
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
ICSF_EXCEPTION
Exception Type (package scope)
-
Constructor Summary
Constructors Constructor Description JCECCARuntimeException​(int exception_type, java.lang.String api_name, java.lang.String exception_message, int return_code, int reason_code)
Creates an instance of JCECCARuntimeException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAPIName()
Gets the name of the API service call causing the exception.java.lang.String
getExceptionMessage()
Gets the exception message displayed.int
getReasonCode()
Gets the reason code returned from the service call.int
getReturnCode()
Gets the return code returned from the service call.
-
-
-
Field Detail
-
ICSF_EXCEPTION
public static final int ICSF_EXCEPTION
Exception Type (package scope)- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JCECCARuntimeException
public JCECCARuntimeException​(int exception_type, java.lang.String api_name, java.lang.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 Detail
-
getAPIName
public java.lang.String getAPIName()
Gets the name of the API service call causing the exception.- Returns:
- apiName the name of the API service call
-
getExceptionMessage
public java.lang.String 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
-
-