com.ibm.mq.headers

Class MQDataException

  1. java.lang.Object
  2. extended byjava.lang.Throwable
  3. extended byjava.lang.Exception
  4. extended bycom.ibm.mq.headers.MQDataException
All implemented interfaces:
java.io.Serializable
Direct known subclasses:
PCFException

  1. public class MQDataException
  2. extends java.lang.Exception
An MQDataException is thrown whenever a WebSphere MQ PCF error occurs. You can change the java.io.OutputStreamWriter to vary where exceptions are logged by setting the value of MQDataException.log. The default value is System.err.
See Also:
Serialized Form

Field Summary

Modifier and Type Field and Description
  1. int
completionCode
WebSphere MQ completion code giving rise to the error.
  1. java.lang.Object
exceptionSource
The object instance that threw the exception.
  1. static
  2. java.io.OutputStreamWriter
log
  1. int
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
  1. int
getCompCode()
Gets the MQSeries completion code
  1. java.lang.String
getErrorCode()
Gets the message id which is the non-translatable prefix to each message.
  1. java.lang.String
getMessage()
Gets the message detail.
  1. int
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

  1. public static volatile java.io.OutputStreamWriter log

completionCode

  1. public int completionCode
WebSphere MQ completion code giving rise to the error. The possible values are:
  • MQDataException.MQCC_WARNING
  • MQDataException.MQCC_FAILED

reasonCode

  1. public int reasonCode
WebSphere MQ reason code describing the error.

exceptionSource

  1. public transient java.lang.Object exceptionSource
The object instance that threw the exception.

Constructor Detail

MQDataException

  1. public MQDataException(int completionCode,
  2. int reasonCode,
  3. 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

  1. public int getCompCode()
Gets the MQSeries completion code
Returns:
completion code

getErrorCode

  1. public java.lang.String getErrorCode( )
Gets the message id which is the non-translatable prefix to each message.
Returns:
message id

getReason

  1. public int getReason()
Gets the MQSeries reason code
Returns:
reason

getMessage

  1. public java.lang.String getMessage( )
Gets the message detail.
Overrides:
getMessage in class java.lang.Throwable
Returns:
the detail