Class JCECCARuntimeException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.ibm.crypto.hdwrCCA.provider.JCECCARuntimeException
All Implemented Interfaces:
Serializable

public class JCECCARuntimeException extends 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:
  • Field Details

    • ICSF_EXCEPTION

      public static final int ICSF_EXCEPTION
      Exception 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 exception
      api_name - Identifies the name of the API service call executing this handler
      exception_message - Identifies the message string to be displayed
      return_code - Identifies the return code returned from the service call
      reason_code - Identifies the reason code returned from the service call
  • Method Details

    • getAPIName

      public String getAPIName()
      Gets the name of the API service call causing the exception.
      Returns:
      apiName the name of the API service call
    • getExceptionMessage

      public 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