com.ibm.cics.server

Class CicsUnexpectedRuntimeException

  • All Implemented Interfaces:
    java.io.Serializable


    public class CicsUnexpectedRuntimeException
    extends CicsRuntimeException
    A CICS Error has occurred, but the JCICS api signatures do not allow the error to be thrown as a checked exception currently. Callers receiving or experiencing this type of RuntimeException should report it to the IBM service team. The exception itself behaves in a similar manner to the CicsResponseConditionException in that it has a resp, resp2 and responseCode to identify what the problem actually is, and the message within the exception has those values rendered into a readable manner also.
    See Also:
    CicsResponseConditionException, Serialized Form
    Since CICS TS version:
    6.1
    Since package version:
    1.900.0
    • Constructor Summary

      Constructors 
      Constructor and Description
      CicsUnexpectedRuntimeException(java.lang.String message, int resp, int resp2, byte[] responseCode, java.lang.Throwable cause) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object obj)
      java.lang.String getMessage()
      Get the Exception message including the RESP and RESP2 values
      int getResp() 
      int getResp2() 
      byte[] getResponseCode() 
      int hashCode()
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CicsUnexpectedRuntimeException

        public CicsUnexpectedRuntimeException(java.lang.String message,
                                              int resp,
                                              int resp2,
                                              byte[] responseCode,
                                              java.lang.Throwable cause)
        Parameters:
        message - The basic message indicating what has gone wrong.
        resp - A code, indicating the primary cause of the issue.
        resp2 - A clarification code, indicating in more detail what the cause of the issue is.
        responseCode - Optional further clarification information to accompany this error reporting object. May be null.
        cause - The optional cause of the exception, if the cause was itself a throwable. May be null.
        Since CICS TS version:
        6.1
        Since package version:
        1.900.0
    • Method Detail

      • getResponseCode

        public byte[] getResponseCode()
        Returns:
        A small collection of data to accompany this error information for more detail.
        Since CICS TS version:
        6.1
        Since package version:
        1.900.0
      • getResp

        public int getResp()
        Returns:
        The code indicating the main reason for this failure.
        Since CICS TS version:
        6.1
        Since package version:
        1.900.0
      • getResp2

        public int getResp2()
        Returns:
        The resp2 code indicating the reason for this failure in more detail.
        Since CICS TS version:
        6.1
        Since package version:
        1.900.0
      • getMessage

        public java.lang.String getMessage()
        Get the Exception message including the RESP and RESP2 values
        Overrides:
        getMessage in class java.lang.Throwable
        Returns:
        String - the Exception message which has readable versions of resp, resp2 and responseCode visible in string form.
        See Also:
        Throwable.getMessage()
        Since CICS TS version:
        6.1
        Since package version:
        1.900.0
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        Since CICS TS version:
        6.1
        Since package version:
        1.900.0
      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        Since CICS TS version:
        6.1
        Since package version:
        1.900.0