MQException

public class MQException
extends Exception
java.lang.Object
   |
   +----java.lang.Throwable
           |
           +----java.lang.Exception
                   |
                   +----com.ibm.mq.MQException
          

An MQException is thrown whenever a WebSphere MQ error occurs. You can change the java.io.OutputStreamWriter to vary where exceptions are logged by setting the value of MQException.log. The default value is System.err.

Constructors

MQException

public MQException(int completionCode, int reasonCode, Object source);

Constructs a new MQException object.

Parameters

Fields

completionCode

public int

WebSphere MQ completion code giving rise to the error. The possible values are:

exceptionSource

public java.lang.Object

The object instance that threw the exception.

log

public static java.io.OutputStreamWriter

Stream to which exceptions will be logged (the default is System.err). If you set this to null then no logging will occur.

MQCC_FAILED

public final static int

Completion code - call failed. The processing of the call did not complete, and the state of the queue manager is normally unchanged; exceptions are specifically noted. The completion code and reason code output parameters have been set; other parameters are unchanged, except where noted. The failure might be the result of a fault in the application program, or of a situation external to the program, for example the user's authority might have been revoked. The reason code parameter gives additional information about the error.

MQCC_OK

public final static int

Completion code - successful completion. The call completed fully; all output parameters have been set. The Reason parameter always has the value MQRC_NONE in this case.

MQCC_UNKNOWN

public final static int

Completion code - unknown.

MQCC_WARNING

public final static int

Completion code - warning (partial completion). The call completed partially. Some output parameters might have been set in addition to the completion code and reason code output parameters. The Reason parameter gives additional information about the partial completion.

MQRC_ADAPTER_CONN_LOAD_ERROR

public final static int

Reason code - unable to load adapter connection module.

MQRC_ADAPTER_CONV_LOAD_ERROR

public final static int

Reason code - unable to load data conversion services modules.

MQRC_ADAPTER_DEFS_ERROR

public final static int

Reason code - adapter subsystem definition module not valid.

MQRC_ADAPTER_DEFS_LOAD_ERROR

public final static int

Reason code - unable to load adapter subsystem definition module.

MQRC_ADAPTER_DISC_LOAD_ERROR

public final static int

Reason code - unable to load adapter disconnection module.

MQRC_ADAPTER_NOT_AVAILABLE

public final static int

Reason code - adapter not available.

MQRC_ADAPTER_SERV_LOAD_ERROR

public final static int

Reason code - unable to load adapter service module.

MQRC_ADAPTER_STORAGE_SHORTAGE

public final static int

Reason code - insufficient storage for adapter.

MQRC_ALIAS_BASE_Q_TYPE_ERROR

public final static int

Reason code - alias base queue not a valid type.

MQRC_ALREADY_CONNECTED

public final static int

Reason code - application is already connected.

MQRC_ANOTHER_Q_MGR_CONNECTED

public final static int

Reason code - another queue manager is already connected.

MQRC_API_EXIT_LOAD_ERROR

public final static int

Reason code - unable to load the API exit.

MQRC_ASID_MISMATCH

public final static int

Reason code - primary and home ASIDs differ.

MQRC_BACKED_OUT

public final static int

Reason code - unit of work is backed out.

MQRC_BACKOUT_THRESHOLD_REACHED

public final static int

Reason code - backout threshold has been reached.

MQRC_BUFFER_ERROR

public final static int

Reason code - buffer parameter is not valid.

MQRC_BUFFER_LENGTH_ERROR

public final static int

Reason code - buffer length parameter is not valid.

MQRC_CALL_IN_PROGRESS

public final static int

Reason code - MQI was entered before previous call was complete.

MQRC_CD_ERROR

public final static int

Reason code - invalid MQCD channel definition. An MQCONNX call was issued to connect to a queue manager, but the MQCD channel definition structure addressed by the ClientConnOffset or ClientConnPtr field in MQCNO contains data that is not valid.

MQRC_CF_NOT_AVAILABLE

public final static int

Reason code - the coupling-facility structure is unavailable. An MQOPEN or MQPUT1 call was issued to access a shared queue, but the allocation of the coupling-facility structure specified in the queue definition failed because there is no suitable coupling facility to hold the structure, based on the preference list in the active CFRM policy. Only applies to z/OS.

MQRC_CF_STRUC_AUTH_FAILED

public final static int

Reason code - the user is not authorized to access the coupling-facility structure. An MQOPEN or MQPUT1 call was issued to access a shared queue, but the call failed because the user is not authorized to access the coupling-facility structure specified in the queue definition. Only applies to z/OS.

MQRC_CF_STRUC_ERROR

public final static int

Reason code - coupling-facility structure is not valid. Z/OS only.

MQRC_CF_STRUC_IN_USE

public final static int

Reason code - the coupling-facility structure is in use. An MQI call was issued to operate on a shared queue, but the call failed because the coupling-facility structure specified in the queue definition is temporarily unavailable. Only applies to z/OS.

MQRC_CF_STRUC_LIST_HDR_IN_USE

public final static int

Reason code - the list header associated with the coupling-facility structure is in use. An MQGET, MQOPEN, MQPUT1, or MQSET call was issued to access a shared queue, but the call failed because the list header associated with the coupling-facility structure specified in the queue definition is temporarily unavailable. Only applies to z/OS.

MQRC_CFH_ERROR

public final static int

Reason code - PCF header structure is not valid.

MQRC_CFIL_ERROR

public final static int

Reason code - PCF integer list parameter structure is not valid.

MQRC_CFIN_ERROR

public final static int

Reason code - PCF integer parameter structure is not valid.

MQRC_CFSL_ERROR

public final static int

Reason code - PCF string list parameter structure is not valid.

MQRC_CFST_ERROR

public final static int

Reason code - PCF string parameter structure is not valid.

MQRC_CHANNEL_ACTIVATED

public final static int

Reason code - a channel is now able to become active because an active slot has been released by another channel.

MQRC_CHANNEL_AUTO_DEF_ERROR

public final static int

Reason code - automatically defined error

MQRC_CHANNEL_AUTO_DEF_OK

public final static int

Reason code - Automatic channel definition succeeded.

This condition is detected when the automatic definition of a channel is successful. The channel is defined by the MCA.

MQRC_CHANNEL_CONV_ERROR

public final static int

Reason code - a channel was unable to convert data and the MQGET call to get a message from the transmission queue resulted in a data conversion error.

MQRC_CHANNEL_NOT_ACTIVATED

public final static int

Reason code - a channel is required to become active, but is unable to do so because the limit on the number of active channels has been reached.

MQRC_CHANNEL_STARTED

public final static int

Reason code - either an operator has issued a Start Channel command or an instance of a channel has been successfully established.

MQRC_CHANNEL_STOPPED

public final static int

Reason code - channel has been stopped.

MQRC_CHANNEL_STOPPED_BY_USER

public final static int

Reason code - channel has been stopped by an operator.

MQRC_CHAR_ATTR_LENGTH_ERROR

public final static int

Reason code - length of character attributes is not valid.

MQRC_CHAR_ATTRS_ERROR

public final static int

Reason code - character attributes string is not valid.

MQRC_CHAR_ATTRS_TOO_SHORT

public final static int

Reason code - not enough space allowed for character attributes.

MQRC_CHAR_CONVERSION_ERROR

public final static int

Reason code - returned by the Java MQQueueManager constructor when a required character-set conversion is not available. The conversion required is between two non-Unicode character sets.

MQRC_CICS_WAIT_FAILED

public final static int

Reason code - wait request has been rejected by CICS.

MQRC_CLIENT_CHANNEL_CONFLICT

public final static int

Reason code - client channel definition table conflict error. An attempt is being made to specify a client channel definition table when the name of the channel has already been defined. Change the channel name to blank and try again. This reason code only occurs with Java applications.

MQRC_CLIENT_CONN_ERROR

public final static int

Reason code - an MQCONNX call was issued to connect to a queue manager, but the MQCD channel definition structure was not specified correctly.

MQRC_CLIENT_EXIT_ERROR

public final static int

Reason code - Error in client exit

MQRC_CLIENT_EXIT_LOAD_ERROR

public final static int

Reason code - client exit could not be loaded.

MQRC_CLUSTER_EXIT_ERROR

public final static int

Reason code - cluster workload exit has failed.

MQRC_CLUSTER_EXIT_LOAD_ERROR

public final static int

Reason code - unable to load cluster workload exit.

MQRC_CLUSTER_PUT_INHIBITED

public final static int

Reason code - put calls have been inhibited for all queues in cluster.

MQRC_CLUSTER_RESOLUTION_ERROR

public final static int

Reason code - cluster name resolution failed.

MQRC_CLUSTER_RESOURCE_ERROR

public final static int

Reason code - cluster resource error.

MQRC_CMD_SERVER_NOT_AVAILABLE

public final static int

Reason code - the command server that processes administration commands is not available.

MQRC_CNO_ERROR

public final static int

Reason code - connection options are not valid.

MQRC_COD_NOT_VALID_FOR_XCF_Q

public final static int

Reason code - COD report option not valid for XCF queue.

MQRC_CODED_CHAR_SET_ID_ERROR

public final static int

Reason code - the coded character set ID is not valid.

MQRC_CONN_ID_IN_USE

public final static int

Reason code - connection identifier is already in use.

MQRC_CONN_TAG_NOT_RELEASED

public final static int

Reason code - an MQDISC call was issued when there was a unit of work outstanding for the connection handle. Only applies to z/OS.

MQRC_CONN_TAG_NOT_USABLE

public final static int

Reason code - the connection tag is not usable. An MQCONNX call was issued specifying one of the MQCNO_* or _CONN_TAG_* options, but the call failed because the connection tag specified by ConnTag in MQCNO is being used by the queue manager for recovery processing, and this processing is delayed pending recovery of the coupling facility. Only applies to z/OS.

MQRC_CONNECTION_BROKEN

public final static int

Reason code - connection to queue manager has been lost.

MQRC_CONNECTION_NOT_AUTHORIZED

public final static int

Reason code - not authorized for connection.

MQRC_CONNECTION_QUIESCING

public final static int

Reason code - connection is quiescing.

MQRC_CONNECTION_STOPPING

public final static int

Reason code - connection is stopping.

MQRC_CONTEXT_HANDLE_ERROR

public final static int

Reason code - queue handle referred to does not save context.

MQRC_CONTEXT_NOT_AVAILABLE

public final static int

Reason code - context not available for queue handle referred to.

MQRC_CONVERTED_MSG_TOO_BIG

public final static int

Reason code - converted data is too big for buffer.

MQRC_CONVERTED_STRING_TOO_BIG

public final static int

Reason code - converted string is too big for field.

MQRC_CORREL_ID_ERROR

public final static int

Reason code - correlation ID error.

MQRC_CURRENT_RECORD_ERROR

public final static int

Reason code - error in current record.

MQRC_DATA_LENGTH_ERROR

public final static int

Reason code - data length parameter is not valid.

MQRC_DB2_NOT_AVAILABLE

public final static int

Reason code - an MQOPEN, MQPUT1, or MQSET call was issued to access a shared queue, but the call failed because the queue manager is not connected to a DB2 subsystem. As a result, the queue manager is unable to access the object definition relating to the shared queue. Only applies to z/OS.

MQRC_DBCS_ERROR

public final static int

Reason code - DBCS string is not valid.

MQRC_DEF_XMIT_Q_TYPE_ERROR

public final static int

Reason code - default transmission queue is not local.

MQRC_DEF_XMIT_Q_USAGE_ERROR

public final static int

Reason code - default transmission queue usage error.

MQRC_DLH_ERROR

public final static int

Reason code - dead letter header structure is not valid.

MQRC_DUPLICATE_RECOV_COORD

public final static int

Reason code - recovery coordinator already exists.

MQRC_DYNAMIC_Q_NAME_ERROR

public final static int

Reason code - name of dynamic queue is not valid.

MQRC_ENCODING_NOT_SUPPORTED

public final static int

Reason code - the Encoding field in the message descriptor MQMD contains a value that is not supported.

MQRC_ENVIRONMENT_ERROR

public final static int

Reason code - call not valid in this environment.

MQRC_EXPIRY_ERROR

public final static int

Reason code - expiry time is not valid.

MQRC_FEEDBACK_ERROR

public final static int

Reason code - feedback code is not valid.

MQRC_FILE_NOT_AUDITED

public final static int

Reason code - file has not been audited.

MQRC_FILE_SYSTEM_ERROR

public final static int

Reason code - error in file system.

MQRC_FORMAT_ERROR

public final static int

Reason code - message format is not valid.

MQRC_FORMAT_NOT_SUPPORTED

public final static int

Reason code - The format field in the message descriptor MQMD contains a value that is not supported.

MQRC_FUNCTION_NOT_SUPPORTED

public final static int

Reason code - An attempt was made to access functionality that is not supported from the environment from which it was called. For example, running the Client Configuration on z/OS

MQRC_GET_INHIBITED

public final static int

Reason code - gets are inhibited for the queue.

MQRC_GLOBAL_UOW_CONFLICT

public final static int

Reason code - global units of work conflict with each other.

MQRC_GMO_ERROR

public final static int

Reason code - get-message options object is not valid.

MQRC_GROUP_ID_ERROR

public final static int

Reason code - group identifier is not valid.

MQRC_HANDLE_IN_USE_FOR_UOW

public final static int

Reason code - handle is in use for a global unit of work.

MQRC_HANDLE_NOT_AVAILABLE

public final static int

Reason code - no more handles are available.

MQRC_HCONN_ERROR

public final static int

Reason code - connection handle is not valid.

MQRC_HEADER_ERROR

public final static int

Reason code - WebSphere MQ header structure is not valid.

MQRC_HOBJ_ERROR

public final static int

Reason code - object handle is not valid.

MQRC_INCOMPLETE_GROUP

public final static int

Reason code - message group is not complete.

MQRC_INCOMPLETE_MSG

public final static int

Reason code - message is not complete.

MQRC_INCONSISTENT_BROWSE

public final static int

Reason code - browse specification is inconsistent.

MQRC_INCONSISTENT_CCSIDS

public final static int

Reason code - message segments have differing CCSIDs.

MQRC_INCONSISTENT_ENCODINGS

public final static int

Reason code - message segments have differing encodings.

MQRC_INCONSISTENT_PERSISTENCE

public final static int

Reason code - inconsistent persistence specification.

MQRC_INCONSISTENT_UOW

public final static int

Reason code - unit-of-work specification is inconsistent.

MQRC_INDEX_ERROR

public final static int

Reason code - an index parameter to a call or method has a value that is not valid. The value must be zero or greater.

MQRC_INDEX_NOT_PRESENT

public final static int

Reason code - the specified index is not present.

MQRC_INHIBIT_VALUE_ERROR

public final static int

Reason code - value for inhibit-get or inhibit-put queue attribute is not valid.

MQRC_INT_ATTR_COUNT_ERROR

public final static int

Reason code - count of integer attributes is not valid.

MQRC_INT_ATTR_COUNT_TOO_SMALL

public final static int

Reason code - not enough space has been allowed for integer attributes.

MQRC_INT_ATTRS_ARRAY_ERROR

public final static int

Reason code - integer attributes array is not valid.

MQRC_INVALID_MSG_UNDER_CURSOR

public final static int

Reason code - message under cursor is not valid for retrieval.

MQRC_JMS_FORMAT_ERROR

public final static int

Reason code - this reason code is generated when JMS encounters a message that it is unable to parse. If such a message is encountered by a JMS ConnectionConsumer, the message is processed as specified by the disposition options in the Report field in the MQMD of the message.

If the Report field specifies one of the MQRO_EXCEPTION_* options, this reason code appears in the Feedback field of the report message.
If the Report field specifies MQRO_DEAD_LETTER_Q, or the disposition report options are left as default, this reason code appears in the Reason field of the MQDLH.

MQRC_JSSE_ERROR

public final static int

Reason code - JSSE reported an error (for example, while connecting to a queue manager using SSL encryption). The MQException object containing this reason code references the Exception thrown by JSSE; this can be obtained by using the MQException.getCause() method. From JMS, the MQException is linked to the thrown JMSException.

MQRC_LOCAL_UOW_CONFLICT

public final static int

Reason code - global unit of work conflicts with a local unit of work.

MQRC_MATCH_OPTIONS_ERROR

public final static int

Reason code - match options are not valid.

MQRC_MAX_CONNS_LIMIT_REACHED

public final static int

Reason code - maximum number of connections reached.

MQRC_MD_ERROR

public final static int

Reason code - message descriptor is not valid.

MQRC_MDE_ERROR

public final static int

Reason code - message descriptor extension is not valid.

MQRC_MISSING_REPLY_TO_Q

public final static int

Reason code - missing reply-to queue.

MQRC_MISSING_WIH

public final static int

Reason code - mismatch of queue IndexType and Format field in MQMD. An MQPUT or MQPUT1 call was issued to put a message on a queue whose IndexType attribute had the value MQIT_MSG_TOKEN, but the Format field in the MQMD was not MQFMT_WORK_INFO_HEADER. This error occurs only when the message arrives at the destination queue manager. Only allies to z/OS.

MQRC_MSG_FLAGS_ERROR

public final static int

Reason code - message flags are not valid.

MQRC_MSG_ID_ERROR

public final static int

Reason code - message ID error.

MQRC_MSG_MARKED_BROWSE_CO_OP

public final static int

Reason code - message is marked

MQRC_MSG_NOT_MATCHED

public final static int

Reason code - message is not matched.

MQRC_MSG_SEQ_NUMBER_ERROR

public final static int

Reason code - message sequence number is not valid.

MQRC_MSG_TOKEN_ERROR

public final static int

Reason code - An MQGET call was issued to retrieve a message using the message token as a selection criterion, but the options specified are not valid. only applies to z/OS.

MQRC_MSG_TOO_BIG_FOR_CHANNEL

public final static int

Reason code - message is too big for channel.

MQRC_MSG_TOO_BIG_FOR_Q

public final static int

Reason code - message length is greater than maximum for queue.

MQRC_MSG_TOO_BIG_FOR_Q_MGR

public final static int

Reason code - message length is greater than maximum for queue manager.

MQRC_MSG_TYPE_ERROR

public final static int

Reason code - message type in message descriptor is not valid.

MQRC_MULTIPLE_REASONS

public final static int

Reason code - multiple reason codes have been returned.

MQRC_NAME_IN_USE

public final static int

Reason code - an MQOPEN call was issued to create a dynamic queue, but a queue with the same name as the dynamic queue already exists. The existing queue is one that is logically deleted, but for which there are still one or more open handles. Only applies to z/OS.

MQRC_NAME_NOT_VALID_FOR_TYPE

public final static int

Reason code - object name is not valid for object type.

MQRC_NEXT_OFFSET_ERROR

public final static int

Reason code - error in offset to next record.

MQRC_NEXT_RECORD_ERROR

public final static int

Reason code - error in next record.

MQRC_NO_DESTINATIONS_AVAILABLE

public final static int

Reason code - no destination queues are available.

MQRC_NO_EXTERNAL_PARTICIPANTS

public final static int

Reason code - An MQBEGIN call was issued to start a unit of work coordinated by the queue manager, but no participating resource managers have been registered with the queue manager. As a result, only changes to WebSphere MQ resources can be coordinated by the queue manager in the unit of work.

MQRC_NO_MSG_AVAILABLE

public final static int

Reason code - no message is available.

MQRC_NO_MSG_LOCKED

public final static int

Reason code - no message is locked.

MQRC_NO_MSG_UNDER_CURSOR

public final static int

Reason code - browse cursor is not positioned on message.

MQRC_NO_RECORD_AVAILABLE

public final static int

Reason code - no record is available.

MQRC_NONE

public final static int

Reason code - none.

MQRC_NOT_AUTHORIZED

public final static int

Reason code - queue is not authorized for access.

MQRC_NOT_CONVERTED

public final static int

Reason code - message data has not been converted.

MQRC_NOT_OPEN_FOR_BROWSE

public final static int

Reason code - queue is not open for browse.

MQRC_NOT_OPEN_FOR_INPUT

public final static int

Reason code - queue is not open for input.

MQRC_NOT_OPEN_FOR_INQUIRE

public final static int

Reason code - queue is not open for inquire.

MQRC_NOT_OPEN_FOR_OUTPUT

public final static int

Reason code - queue is not open for output.

MQRC_NOT_OPEN_FOR_PASS_ALL

public final static int

Reason code - queue not open for pass all context.

MQRC_NOT_OPEN_FOR_PASS_IDENT

public final static int

Reason code - queue not open for pass identity context.

MQRC_NOT_OPEN_FOR_SET

public final static int

Reason code - queue is not open for set all context.

MQRC_NOT_OPEN_FOR_SET_ALL

public final static int

Reason code - queue not open for set all context.

MQRC_NOT_OPEN_FOR_SET_IDENT

public final static int

Reason code - queue not open for set identity context.

MQRC_OBJECT_ALREADY_EXISTS

public final static int

Reason code - object already exists.

MQRC_OBJECT_CHANGED

public final static int

Reason code - object definition has changed since it opened.

MQRC_OBJECT_DAMAGED

public final static int

Reason code - object has been damaged.

MQRC_OBJECT_IN_USE

public final static int

Reason code - object is already open with conflicting options.

MQRC_OBJECT_LEVEL_INCOMPATIBLE

public final static int

Reason code - object level is incompatible.

MQRC_OBJECT_NAME_ERROR

public final static int

Reason code - object name is not valid.

MQRC_OBJECT_NOT_UNIQUE

public final static int

Reason code - An MQOPEN or MQPUT1 call was issued to access a queue, but the call failed because the queue specified in the MQOD structure cannot be resolved unambiguously. There exists a shared queue with the specified name, and a nonshared queue with the same name. Only applies to z/OS.

MQRC_OBJECT_Q_MGR_NAME_ERROR

public final static int

Reason code - object queue-manager name is not valid.

MQRC_OBJECT_RECORDS_ERROR

public final static int

Reason code - object records are not valid.

MQRC_OBJECT_TYPE_ERROR

public final static int

Reason code - object type is not valid.

MQRC_OD_ERROR

public final static int

Reason code - object descriptor structure is not valid.

MQRC_OFFSET_ERROR

public final static int

Reason code - message segment offset is not valid.

MQRC_OPEN_FAILED

public final static int

Reason code - object did not open successfully.

MQRC_OPTION_ENVIRONMENT_ERROR

public final static int

Reason code - an MQGET call with the MQGMO_MARK_SKIP_BACKOUT option specified was issued from a DB2 Stored Procedure. The call failed because the MQGMO_MARK_SKIP_BACKOUT option cannot be used from a DB2 Stored Procedure.

MQRC_OPTION_NOT_VALID_FOR_TYPE

public final static int

Reason code - option is not valid for object type.

MQRC_OPTIONS_ERROR

public final static int

Reason code - options are not valid or not consistent.

MQRC_ORIGINAL_LENGTH_ERROR

public final static int

Reason code - original length is not valid.

MQRC_OUTCOME_MIXED

public final static int

Reason code - result of commit or backout operation is mixed.

MQRC_OUTCOME_PENDING

public final static int

Reason code - result of commit operation is pending.

MQRC_PAGESET_ERROR

public final static int

Reason code - error accessing page-set data set.

MQRC_PAGESET_FULL

public final static int

Reason code - external storage medium is full.

MQRC_PARTICIPANT_NOT_AVAILABLE

public final static int

Reason code - no participating resource managers have been registered.

MQRC_PARTICIPANT_NOT_DEFINED

public final static int

Reason code - participant has not been defined.

MQRC_PERSISTENCE_ERROR

public final static int

Reason code - persistence is not valid.

MQRC_PERSISTENT_NOT_ALLOWED

public final static int

Reason code - queue does not support persistent messages.

MQRC_PMO_ERROR

public final static int

Reason code - put-message options object is not valid.

MQRC_PMO_RECORD_FLAGS_ERROR

public final static int

Reason code - put message record flags not valid.

MQRC_PRIORITY_ERROR

public final static int

Reason code - message priority is not valid.

MQRC_PRIORITY_EXCEEDS_MAXIMUM

public final static int

Reason code - message priority exceeds maximum value supported.

MQRC_PUT_INHIBITED

public final static int

Reason code - put calls are inhibited for the queue.

MQRC_PUT_MSG_RECORDS_ERROR

public final static int

Reason code - put message records are not valid.

MQRC_Q_DELETED

public final static int

Reason code - queue has been deleted.

MQRC_Q_DEPTH_HIGH

public final static int

Reason code - Queue depth high limit reached or exceeded.

A message put has caused the queue depth to be incremented to or above the limit specified in the QDepthHighLimit attribute.

MQRC_Q_DEPTH_LOW

public final static int

Reason code - Queue depth low limit reached or exceeded.

A message get has caused the queue depth to be decremented to or below the limit specified in the QDepthLowLimit attribute.

MQRC_Q_FULL

public final static int

Reason code - queue is full.

MQRC_Q_MGR_ACTIVE

public final static int

Reason code - the queue manager is active.

MQRC_Q_MGR_NAME_ERROR

public final static int

Reason code - queue manager name is not valid or not known.

MQRC_Q_MGR_NOT_ACTIVE

public final static int

Reason code - the queue manager is not active.

MQRC_Q_MGR_NOT_AVAILABLE

public final static int

Reason code - queue manager is not available for connection.

MQRC_Q_MGR_QUIESCING

public final static int

Reason code - queue manager is quiescing.

MQRC_Q_MGR_STOPPING

public final static int

Reason code - queue manager is shutting down.

MQRC_Q_NOT_EMPTY

public final static int

Reason code - queue contains one or more messages or uncommitted put or get requests.

MQRC_Q_SERVICE_INTERVAL_HIGH

public final static int

Reason code - Queue service interval high.

No successful gets or puts have been detected within an interval greater than the limit specified in the QServiceInterval attribute.

MQRC_Q_SERVICE_INTERVAL_OK

public final static int

Reason code - Queue service interval OK.

A successful get has been detected within an interval less than or equal to the limit specified in the QServiceInterval attribute.

MQRC_Q_SPACE_NOT_AVAILABLE

public final static int

Reason code - no space available on disk for queue.

MQRC_Q_TYPE_ERROR

public final static int

Reason code - queue type not valid.

MQRC_RECS_PRESENT_ERROR

public final static int

Reason code - number of records present is not valid.

MQRC_REMOTE_Q_NAME_ERROR

public final static int

Reason code - remote queue name is not valid.

MQRC_REPORT_OPTIONS_ERROR

public final static int

Reason code - report options in message descriptor are not valid.

MQRC_RESOURCE_PROBLEM

public final static int

Reason code - insufficient system resources are available.

MQRC_RESPONSE_RECORDS_ERROR

public final static int

Reason code - object records not valid.

MQRC_RFH_COMMAND_ERROR

public final static int

Reason code - the message contains an MQRFH structure, but the command name contained in the NameValueString field is not valid.

MQRC_RFH_DUPLICATE_PARM

public final static int

Reason code - the message contains an MQRFH structure, but a parameter occurs more than once in the NameValueString field when only one occurrence is valid for the specified command.

MQRC_RFH_ERROR

public final static int

Reason code - an MQPUT or MQPUT1 call was issued, but the message data contains an MQRFH or MQRFH2 structure that is not valid.

MQRC_RFH_PARM_ERROR

public final static int

Reason code - the message contains an MQRFH structure, but a parameter name contained in the NameValueString field is not valid for the command specified.

MQRC_RFH_PARM_MISSING

public final static int

Reason code - the message contains an MQRFH structure, but the command specified in the NameValueString field requires a parameter that is not present.

MQRC_RFH_STRING_ERROR

public final static int

Reason code - the contents of the NameValueString field in the MQRFH structure are not valid.

MQRC_RMH_ERROR

public final static int

Reason code - Reference message header structure is not valid.

MQRC_SECOND_MARK_NOT_ALLOWED

public final static int

Reason code - a message is already marked.

MQRC_SECURITY_ERROR

public final static int

Reason code - a security error has occurred.

MQRC_SEGMENT_LENGTH_ZERO

public final static int

Reason code - length of data in message segment is zero.

MQRC_SIGNAL_OUTSTANDING

public final static int

Reason code - a signal is outstanding for this handle.

MQRC_SIGNAL_REQUEST_ACCEPTED

public final static int

Reason code - no message returned (but signal request accepted).

MQRC_SIGNAL1_ERROR

public final static int

Reason code - signal field is not valid.

MQRC_SOURCE_BUFFER_ERROR

public final static int

Reason code - source buffer parameter is not valid.

MQRC_SOURCE_CCSID_ERROR

public final static int

Reason code - source coded character set identifier is not valid.

MQRC_SOURCE_DECIMAL_ENC_ERROR

public final static int

Reason code - packed-decimal encoding specified by receiver is not recognized.

MQRC_SOURCE_FLOAT_ENC_ERROR

public final static int

Reason code - source floating point encoding specified is not recognized.

MQRC_SOURCE_INTEGER_ENC_ERROR

public final static int

Reason code - source integer encoding not recognized.

MQRC_SOURCE_LENGTH_ERROR

public final static int

Reason code - source length parameter is not valid.

MQRC_SSL_CERT_STORE_ERROR

public final static int

Reason code - SSL CertStore error.

MQRC_SSL_CERTIFICATE_REVOKED

public final static int

Reason code - SSL certificate has been revoked.

MQRC_SSL_INITIALIZATION_ERROR

public final static int

Reason code - SSL initialization error.

MQRC_SSL_KEY_RESET_ERROR

public final static int

Reason code - SSL key reset error.

MQRC_SSL_NOT_ALLOWED

public final static int

Reason code - SSL is not allowed.

MQRC_SSL_PEER_NAME_ERROR

public final static int

Reason code - SSL error in peer name.

MQRC_SSL_PEER_NAME_MISMATCH

public final static int

Reason code - SSL peer name mismatch.

MQRC_STOPPED_BY_CLUSTER_EXIT

public final static int

Reason code - call has been rejected by cluster workload exit.

MQRC_STORAGE_CLASS_ERROR

public final static int

Reason code - storage class error.

MQRC_STORAGE_NOT_AVAILABLE

public final static int

Reason code - insufficient storage is available.

MQRC_STRING_ERROR

public final static int

Reason code - the string parameter is not valid.

MQRC_STRING_LENGTH_ERROR

public final static int

The StringLength parameter is not valid.

MQRC_STRING_TRUNCATED

public final static int

Reason code - the string returned by the call is too long to fit in the buffer provided. The string has been truncated to fit in the buffer.

MQRC_SUPPRESSED_BY_EXIT

public final static int

Reason code - call suppressed by exit program.

MQRC_SYNCPOINT_LIMIT_REACHED

public final static int

Reason code - no more messages can be handled within current unit of work.

MQRC_SYNCPOINT_NOT_AVAILABLE

public final static int

Reason code - syncpoint support is not available.

MQRC_TARGET_BUFFER_ERROR

public final static int

Reason code - target buffer parameter is not valid.

MQRC_TARGET_CCSID_ERROR

public final static int

Reason code - the coded character-set identifier to which the character data is to be converted is not valid or not supported.

MQRC_TARGET_DECIMAL_ENC_ERROR

public final static int

Reason code - packed-decimal encoding specified by the receiver is not recognized.

MQRC_TARGET_FLOAT_ENC_ERROR

public final static int

Reason code - floating-point encoding specified by the receiver is not recognized.

MQRC_TARGET_INTEGER_ENC_ERROR

public final static int

Reason code - target coded character set identifier is not valid.

MQRC_TARGET_LENGTH_ERROR

public final static int

Reason code - target length parameter is not valid.

MQRC_TM_ERROR

public final static int

Reason code - trigger message structure is not valid.

MQRC_TMC_ERROR

public final static int

Reason code - character trigger message structure is not valid.

MQRC_TRIGGER_CONTROL_ERROR

public final static int

Reason code - value for trigger-point attribute is not valid.

MQRC_TRIGGER_DEPTH_ERROR

public final static int

Reason code - value for trigger-depth attribute is not valid.

MQRC_TRIGGER_MSG_PRIORITY_ERR

public final static int

Reason code - value for trigger-message priority attribute is not valid.

MQRC_TRIGGER_TYPE_ERROR

public final static int

Reason code - value for trigger-type attribute is not valid.

MQRC_TRUNCATED_MSG_ACCEPTED

public final static int

Reason code - truncated message returned (processing completed).

MQRC_TRUNCATED_MSG_FAILED

public final static int

Reason code - truncated message returned (processing not completed).

MQRC_UCS2_CONVERSION_ERROR

public final static int

Reason code - returned by the Java MQQueueManager constructor when a required character-set conversion is not available. The conversion required is between the UCS-2 Unicode character set and the queue manager's character set. IBM-500 is used for the queue manager's character set if no specific value is available.

MQRC_UNEXPECTED_ERROR

public final static int

Reason code - an unexpected error has occurred.

MQRC_UNIT_OF_WORK_NOT_STARTED

public final static int

Reason code - the unit of work has not started.

MQRC_UNKNOWN_ALIAS_BASE_Q

public final static int

Reason code - unknown alias base queue.

MQRC_UNKNOWN_DEF_XMIT_Q

public final static int

Reason code - unknown default transmission queue.

MQRC_UNKNOWN_OBJECT_NAME

public final static int

Reason code - unknown object name.

MQRC_UNKNOWN_OBJECT_Q_MGR

public final static int

Reason code - unknown object queue manager.

MQRC_UNKNOWN_REMOTE_Q_MGR

public final static int

Reason code - unknown remote queue manager.

MQRC_UNKNOWN_REPORT_OPTION

public final static int

Reason code - one or more report options in the in message descriptor are not recognized.

MQRC_UNKNOWN_XMIT_Q

public final static int

Reason code - unknown transmission queue.

MQRC_UNSUPPORTED_CIPHER_SUITE

public final static int

Reason code - cipher suite is unsupported.

MQRC_UOW_CANCELED

public final static int

Reason code - an MQI call was issued, but the unit of work (TM/MP transaction) being used for the WebSphere MQ operation had been canceled.

MQRC_UOW_ENLISTMENT_ERROR

public final static int

Reason code - enlistment in a global unit of work failed.

MQRC_UOW_MIX_NOT_SUPPORTED

public final static int

Reason code - mixture of unit-of-work calls is not supported.

MQRC_UOW_NOT_AVAILABLE

public final static int

Reason code - unit of work is not available for the queue manager to use.

MQRC_WAIT_INTERVAL_ERROR

public final static int

Reason code - wait interval in MQGMO not valid.

MQRC_WIH_HEADER

public final static int

Reason code - an MQPUT or MQPUT1 call was issued, but the message data contains an MQWIH structure that is not valid.

MQRC_WRONG_GMO_VERSION

public final static int

Reason code - wrong version of MQGMO has been supplied.

MQRC_WRONG_MD_VERSION

public final static int

Reason code - wrong version of MQMD has been supplied.

MQRC_WXP_ERROR

public final static int

Reason code - WXP error.

MQRC_XMIT_Q_TYPE_ERROR

public final static int

Reason code - transmission queue not local.

MQRC_XMIT_Q_USAGE_ERROR

public final static int

Reason code - transmission queue not local.

MQRC_XQH_ERROR

public final static int

Reason code - transmission queue header structure is not valid.

MQRC_XWAIT_CANCELED

public final static int

Reason code - XA wait has been canceled.

MQRC_XWAIT_ERROR

public final static int

Reason code - XA wait error.

reasonCode

public int

WebSphere MQ reason code describing the error.

Methods

getMessage

public String getMessage();

Gets the message detail.

Returns

logExclude

public static void logExclude(Integer avoidCode);

Adds an exception type to be kept out of the log.

Parameters

logInclude

public static void logInclude(Integer includeCode);

Allows an exception type to be put in the log.

Parameters