public class CicsResponseConditionException extends CicsConditionException
This class provides the base for those exceptions that correspond to CICS conditions for which a response code (in the EIBRCODE field of the EIB) is defined.
Constructor and Description |
---|
CicsResponseConditionException(java.lang.String message,
com.ibm.cics.server.CicsConditionException.RESPCODE respCode,
int resp2,
byte[] responseCode,
java.lang.Throwable cause)
Constructor used when a condition is detected in the base product and
there is no descriptive comment supplied.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getResponseCode()
Return the response code value for the CICS Condition represented by the
CicsResponseConditionException . |
getMessage, getRESP, getRESP2
setRootCause
public CicsResponseConditionException(java.lang.String message, com.ibm.cics.server.CicsConditionException.RESPCODE respCode, int resp2, byte[] responseCode, java.lang.Throwable cause)
respCode
- the response codecause
- The original reason for the error.message
- The message associated with the problem.resp2
- The secondary error code associated with the error.responseCode
- The response code returned is the value of EIBRCODE,
a six byte field which contains the CICS response code returned after
the function requested by the last CICS command to be issued by the
task has been completed.public byte[] getResponseCode()
CicsResponseConditionException
.
The response code returned is the value of EIBRCODE, a six byte field which contains the CICS response code returned after the function requested by the last CICS command to be issued by the task has been completed.
For new commands where EIBRESP and EIBRESP2 are the strategic means of interrogating the resulting condition of an executed command, byte 3 of EIBRCODE has the same value as EIBRESP. Any further information is in EIBRESP2 rather than EIBRCODE. For a normal response, this field contains HEX zeros (6 X'00').
CicsConditionException.getRESP2()