com.ibm.mq.headers
Class MQDataException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- com.ibm.mq.headers.MQDataException
All implemented interfaces:
java.io.Serializable
Direct known subclasses:
- public class MQDataException
- extends java.lang.Exception
See Also:
Field Summary
Modifier and Type | Field and Description |
---|---|
|
completionCode
WebSphere MQ completion code giving rise to the error.
|
|
exceptionSource
The object instance that threw the exception.
|
|
log
|
|
reasonCode
WebSphere MQ reason code describing the error.
|
Constructor Summary
Constructor and Description |
---|
MQDataException(int completionCode,int reasonCode,java.lang.Object source)
Constructs a new MQDataException object.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getCompCode()
Gets the MQSeries completion code
|
|
getErrorCode()
Gets the message id which is the non-translatable prefix to each message.
|
|
getMessage()
Gets the message detail.
|
|
getReason()
Gets the MQSeries reason code
|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail
log
- public static volatile java.io.OutputStreamWriter log
completionCode
- public int completionCode
WebSphere MQ completion code giving rise to the error. The possible values are:
- MQDataException.MQCC_WARNING
- MQDataException.MQCC_FAILED
reasonCode
- public int reasonCode
WebSphere MQ reason code describing the error.
exceptionSource
- public transient java.lang.Object exceptionSource
The object instance that threw the exception.
Constructor Detail
MQDataException
- public MQDataException(int completionCode,
- int reasonCode,
- java.lang.Object source)
Constructs a new MQDataException object.
Parameters:
completionCode
- the WebSphere MQ completion code reasonCode
- the WebSphere MQ reason code source
- the object in which the error occurred Method Detail
getCompCode
- public int getCompCode()
Gets the MQSeries completion code
Returns:
completion code
getErrorCode
- public java.lang.String getErrorCode( )
Gets the message id which is the non-translatable prefix to each message.
Returns:
message id
getReason
- public int getReason()
Gets the MQSeries reason code
Returns:
reason
getMessage
- public java.lang.String getMessage( )
Gets the message detail.
Overrides:
getMessage
in class java.lang.Throwable
Returns:
the detail