com.ibm.mq.jmqi

Class JmqiException

  1. java.lang.Object
  2. extended byjava.lang.Throwable
  3. extended byjava.lang.Exception
  4. extended bycom.ibm.mq.jmqi.JmqiException
All implemented interfaces:
java.io.Serializable

  1. public class JmqiException
  2. extends java.lang.Exception
The JmqiException class is thrown when errors occur in the Java Message Queueing Interface (JMQI) which is the interface which represents the native MQI in the Java environment. There is an implementation which calls through a JNI native library to the native MQI library, and another implementation which communicates with a remote Queue Manager using a WebSphere MQ Channel. When these implementations encounter a problem a JmqiException containing the details may be thrown.
See Also:
Serialized Form

Constructor Summary

Constructor and Description
JmqiException()

Method Summary

Modifier and Type Method and Description
  1. int
getCompCode()
Getter for completion code
  1. java.lang.String
getMessage()
Output a summary message in the form: RC=XXX;CC=XXX;AMQXXXX: summary
  1. java.lang.String
getMessage(boolean displayInserts)
Output a summary message in the form: RC=XXX;CC=XXX;AMQXXXX: summary
  1. int
getReason()
Getter for reason code
  1. java.lang.String
getWmqLogMessage()
Get a detailed message summary formatted similarly to the WMQ logs
  1. java.lang.String
getWmqMsgExplanation()
The AMQXXXX message explaination, or null if no AMQXXXX message is associated with exception.
  1. int
getWmqMsgSeverity()
The AMQXXXX message severity, or -1 if no AMQXXXX message associated with exception
  1. java.lang.String
getWmqMsgSummary()
The AMQXXXX message summary, or null if no AMQXXXX message is associated with exception
  1. java.lang.String
getWmqMsgUserResponse()
The message user response, or null if no AMQXXXX message is associated with exception
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

Constructor Detail

JmqiException

  1. public JmqiException()

Method Detail

getMessage

  1. public java.lang.String getMessage( )
Output a summary message in the form: RC=XXX;CC=XXX;AMQXXXX: summary
Overrides:
getMessage in class java.lang.Throwable
Returns:
Output a summary message

getMessage

  1. public java.lang.String getMessage( boolean displayInserts)
Output a summary message in the form: RC=XXX;CC=XXX;AMQXXXX: summary
Parameters:
displayInserts - If true, outputs the inserts which were used in a message as well as the message.
Returns:
Output a summary message

getWmqMsgSummary

  1. public java.lang.String getWmqMsgSummary( )
The AMQXXXX message summary, or null if no AMQXXXX message is associated with exception
Returns:
The message summary

getWmqMsgExplanation

  1. public java.lang.String getWmqMsgExplanation( )
The AMQXXXX message explaination, or null if no AMQXXXX message is associated with exception.
Returns:
The message explaination

getWmqMsgUserResponse

  1. public java.lang.String getWmqMsgUserResponse( )
The message user response, or null if no AMQXXXX message is associated with exception
Returns:
The message user response

getWmqMsgSeverity

  1. public int getWmqMsgSeverity()
The AMQXXXX message severity, or -1 if no AMQXXXX message associated with exception
Returns:
The message severity

getWmqLogMessage

  1. public java.lang.String getWmqLogMessage( )
Get a detailed message summary formatted similarly to the WMQ logs
Returns:
A formatted log message, or null if no AMQXXXX message is associated with exception

getCompCode

  1. public int getCompCode()
Getter for completion code
Returns:
The completion code

getReason

  1. public int getReason()
Getter for reason code
Returns:
The reason qualifying the completion code