com.ibm.mq.jmqi
Class JmqiException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.ibm.mq.jmqi.JmqiException
-
- All Implemented Interfaces:
- java.io.Serializable
public class JmqiException extends java.lang.ExceptionThe 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description JmqiException()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetCompCode()Getter for completion codejava.lang.StringgetMessage()Output a summary message in the form: RC=XXX;CC=XXX;AMQXXXX: summaryjava.lang.StringgetMessage(boolean displayInserts)Output a summary message in the form: RC=XXX;CC=XXX;AMQXXXX: summaryintgetReason()Getter for reason codejava.lang.StringgetWmqLogMessage()Get a detailed message summary formatted similarly to the WMQ logsjava.lang.StringgetWmqMsgExplanation()The AMQXXXX message explaination, or null if no AMQXXXX message is associated with exception.intgetWmqMsgSeverity()The AMQXXXX message severity, or -1 if no AMQXXXX message associated with exceptionjava.lang.StringgetWmqMsgSummary()The AMQXXXX message summary, or null if no AMQXXXX message is associated with exceptionjava.lang.StringgetWmqMsgUserResponse()The message user response, or null if no AMQXXXX message is associated with exception
-
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
Output a summary message in the form: RC=XXX;CC=XXX;AMQXXXX: summary- Overrides:
getMessagein classjava.lang.Throwable- Returns:
- Output a summary message
-
getMessage
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
public java.lang.String getWmqMsgSummary()
The AMQXXXX message summary, or null if no AMQXXXX message is associated with exception- Returns:
- The message summary
-
getWmqMsgExplanation
public java.lang.String getWmqMsgExplanation()
The AMQXXXX message explaination, or null if no AMQXXXX message is associated with exception.- Returns:
- The message explaination
-
getWmqMsgUserResponse
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
public int getWmqMsgSeverity()
The AMQXXXX message severity, or -1 if no AMQXXXX message associated with exception- Returns:
- The message severity
-
getWmqLogMessage
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
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
-
-