Class ZOSSystemException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.compuware.api.topaz.TopazAPIRuntimeException
-
- com.compuware.api.topaz.hosts.zos.ZOSSystemException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ZOSAbendException
public class ZOSSystemException extends TopazAPIRuntimeException
ZOSSystemExceptionis an unchecked exception thrown when a z/OS system (non-abend) error occurs while performing an action on a z/OS host.For a textual description of a z/OS system error, use
Throwable.getMessage()orTopazAPIRuntimeException.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 Summary
Constructors Constructor Description ZOSSystemException(String message, String localizedMessage, IZOSHost zosHost, int returnCode, String reasonCode)Constructs a new ZOS system exception with the specified detail messages, z/OS host, return code and reason code.ZOSSystemException(String message, String localizedMessage, Throwable cause, IZOSHost zosHost, int returnCode, String reasonCode)Constructs a new ZOS system exception with the specified detail messages, cause, z/OS host, return code and reason code.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetReasonCode()Returns Compuware's reason code for this error.intgetReturnCode()Returns Compuware's return code for this error.IZOSHostgetZOSHost()Returns the z/OS host on which this exception occurred.-
Methods inherited from class com.compuware.api.topaz.TopazAPIRuntimeException
getLocalizedMessage
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ZOSSystemException
public ZOSSystemException(String message, String localizedMessage, IZOSHost zosHost, int returnCode, String reasonCode)
Constructs a new ZOS system 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 toThrowable.initCause(java.lang.Throwable).- Parameters:
message- the non-localized detail message (which is saved for later retrieval by theThrowable.getMessage()method).localizedMessage- the localized description (which is saved for later retrieval by theTopazAPIRuntimeException.getLocalizedMessage()method). (Anullvalue is permitted, in which casegetLocalizedMessage()will return the non-localized detail message.)zosHost- the z/OS host associated with this exceptionreturnCode- the Compuware return codereasonCode- the Compuware reason code- Since:
- 1.0.0
-
ZOSSystemException
public ZOSSystemException(String message, String localizedMessage, Throwable cause, IZOSHost zosHost, int returnCode, String reasonCode)
Constructs a new ZOS system exception with the specified detail messages, cause, z/OS host, return code and reason code.Note that the detail message associated with
causeis not automatically incorporated in this exception's detail message.- Parameters:
message- the non-localized detail message (which is saved for later retrieval by theThrowable.getMessage()method).localizedMessage- the localized description (which is saved for later retrieval by theTopazAPIRuntimeException.getLocalizedMessage()method). (Anullvalue is permitted, in which casegetLocalizedMessage()will return the non-localized detail message.)cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)zosHost- the z/OS host associated with this exceptionreturnCode- the Compuware return codereasonCode- the Compuware reason code- Since:
- 1.0.0
-
-
Method Detail
-
getZOSHost
public IZOSHost getZOSHost()
Returns the z/OS host on which this exception occurred.- Returns:
- the z/OS host
- Since:
- 1.0.0
-
getReturnCode
public int getReturnCode()
Returns Compuware's return code for this error.- Returns:
- the return code
- Since:
- 1.0.0
-
getReasonCode
public String getReasonCode()
Returns Compuware's reason code for this error.- Returns:
- the reason code
- Since:
- 1.0.0
-
-