Class JmqiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ibm.mq.jmqi.JmqiException
- All Implemented Interfaces:
Serializable
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGetter for completion codeOutput a summary message in the form: RC=XXX;CC=XXX;AMQXXXX: summarygetMessage(boolean displayInserts) Output a summary message in the form: RC=XXX;CC=XXX;AMQXXXX: summaryintGetter for reason codeGet a detailed message summary formatted similarly to the WMQ logsThe AMQXXXX message explaination, or null if no AMQXXXX message is associated with exception.intThe AMQXXXX message severity, or -1 if no AMQXXXX message associated with exceptionThe AMQXXXX message summary, or null if no AMQXXXX message is associated with exceptionThe message user response, or null if no AMQXXXX message is associated with exceptionMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JmqiException
public JmqiException()
-
-
Method Details
-
getMessage
Output a summary message in the form: RC=XXX;CC=XXX;AMQXXXX: summary- Overrides:
getMessagein classThrowable- Returns:
- Output a summary message
-
getMessage
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
The AMQXXXX message summary, or null if no AMQXXXX message is associated with exception- Returns:
- The message summary
-
getWmqMsgExplanation
The AMQXXXX message explaination, or null if no AMQXXXX message is associated with exception.- Returns:
- The message explaination
-
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
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
-