Class JmqiException

All Implemented Interfaces:
Serializable

public class JmqiException extends 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 an IBM MQ Channel. When these implementations encounter a problem a JmqiException containing the details may be thrown.
See Also:
  • Constructor Details

    • JmqiException

      public JmqiException()
  • Method Details

    • getMessage

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

      public 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

      public String getWmqMsgSummary()
      The AMQXXXX message summary, or null if no AMQXXXX message is associated with exception
      Returns:
      The message summary
    • getWmqMsgExplanation

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

      public String getWmqMsgUserResponse()
      The message user response, or null if no AMQXXXX message is associated with exception
      Returns:
      The message user response
    • getWmqMsgSeverity

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

      public 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

      public int getCompCode()
      Getter for completion code
      Returns:
      The completion code
    • getReason

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