Class ZOSAbendException

  • All Implemented Interfaces:
    Serializable

    public class ZOSAbendException
    extends ZOSSystemException
    ZOSAbendException is an unchecked exception thrown when a z/OS system abend occurs while performing an action on a z/OS host.

    For a textual description of a z/OS abend, use Throwable.getMessage() or TopazAPIRuntimeException.getLocalizedMessage(). For further details regarding a specific Compuware return/reason code, see the "Topaz Workbench Messages and Codes" section of the Topaz Workbench Installation Guide.

    Since:
    1.0.0
    Version:
    2.0.0
    See Also:
    Serialized Form
    • Constructor Detail

      • ZOSAbendException

        public ZOSAbendException​(String message,
                                 String localizedMessage,
                                 IZOSHost zosHost,
                                 int returnCode,
                                 String reasonCode)
        Constructs a new ZOS abend exception with the specified detail messages, z/OS host, return code and reason code. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(java.lang.Throwable).
        Parameters:
        message - the non-localized detail message (which is saved for later retrieval by the Throwable.getMessage() method).
        localizedMessage - the localized description (which is saved for later retrieval by the TopazAPIRuntimeException.getLocalizedMessage() method). (A null value is permitted, in which case getLocalizedMessage() will return the non-localized detail message.)
        zosHost - the z/OS host associated with this exception
        returnCode - the Compuware return code
        reasonCode - the Compuware reason code
        Since:
        1.0.0
      • ZOSAbendException

        public ZOSAbendException​(String message,
                                 String localizedMessage,
                                 Throwable cause,
                                 IZOSHost zosHost,
                                 int returnCode,
                                 String reasonCode)
        Constructs a new ZOS abend exception with the specified detail messages, cause, z/OS host, return code and reason code.

        Note that the detail message associated with cause is not automatically incorporated in this exception's detail message.

        Parameters:
        message - the non-localized detail message (which is saved for later retrieval by the Throwable.getMessage() method).
        localizedMessage - the localized description (which is saved for later retrieval by the TopazAPIRuntimeException.getLocalizedMessage() method). (A null value is permitted, in which case getLocalizedMessage() will return the non-localized detail message.)
        cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
        zosHost - the z/OS host associated with this exception
        returnCode - the Compuware return code
        reasonCode - the Compuware reason code
        Since:
        1.0.0
    • Method Detail

      • getAbendCode

        public String getAbendCode()
        Returns the abend code.
        Returns:
        the abend code
        Since:
        1.0.0
      • getAbendReasonCode

        public String getAbendReasonCode()
        Returns the reason code of the abend.
        Returns:
        the abend reason code
        Since:
        1.0.0