com.ibm.mq
Class MQException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.ibm.mq.MQException
All Implemented Interfaces:
java.io.Serializable

public class MQException
extends java.lang.Exception

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.

See Also:
Serialized Form

Field Summary
 int completionCode
          WebSphere MQ completion code giving rise to the error.
 java.lang.Object exceptionSource
          The object instance that threw the exception.
static java.io.OutputStreamWriter log
          Stream to which exceptions will be logged (the default is System.err).
static int MQCC_FAILED
          Completion code - call failed.
static int MQCC_OK
          Completion code - successful completion.
static int MQCC_UNKNOWN
          Completion code - unknown.
static int MQCC_WARNING
          Completion code - warning (partial completion).
static int MQRC_ADAPTER_CONN_LOAD_ERROR
          Reason code - unable to load adapter connection module.
static int MQRC_ADAPTER_CONV_LOAD_ERROR
          Reason code - unable to load data conversion services modules.
static int MQRC_ADAPTER_DEFS_ERROR
          Reason code - adapter subsystem definition module not valid.
static int MQRC_ADAPTER_DEFS_LOAD_ERROR
          Reason code - unable to load adapter subsystem definition module.
static int MQRC_ADAPTER_DISC_LOAD_ERROR
          Reason code - unable to load adapter disconnection module.
static int MQRC_ADAPTER_NOT_AVAILABLE
          Reason code - adapter not available.
static int MQRC_ADAPTER_SERV_LOAD_ERROR
          Reason code - unable to load adapter service module.
static int MQRC_ADAPTER_STORAGE_SHORTAGE
          Reason code - insufficient storage for adapter.
static int MQRC_ALIAS_BASE_Q_TYPE_ERROR
          Reason code - alias base queue not a valid type.
static int MQRC_ALREADY_CONNECTED
          Reason code - application is already connected.
static int MQRC_ANOTHER_Q_MGR_CONNECTED
          Reason code - another queue manager is already connected.
static int MQRC_API_EXIT_LOAD_ERROR
          Reason code - unable to load the API exit.
static int MQRC_ASID_MISMATCH
          Reason code - primary and home ASIDs differ.
static int MQRC_BACKED_OUT
          Reason code - unit of work is backed out.
static int MQRC_BACKOUT_THRESHOLD_REACHED
          Reason code - backout threshold has been reached.
static int MQRC_BUFFER_ERROR
          Reason code - buffer parameter is not valid.
static int MQRC_BUFFER_LENGTH_ERROR
          Reason code - buffer length parameter is not valid.
static int MQRC_CALL_IN_PROGRESS
          Reason code - MQI was entered before previous call was complete.
static int MQRC_CD_ERROR
          Reason code - invalid MQCD channel definition.
static int MQRC_CF_NOT_AVAILABLE
          Reason code - the coupling-facility structure is unavailable.
static int MQRC_CF_STRUC_AUTH_FAILED
          Reason code - the user is not authorized to access the coupling-facility structure.
static int MQRC_CF_STRUC_ERROR
          Reason code - coupling-facility structure is not valid. z/OS only.
static int MQRC_CF_STRUC_IN_USE
          Reason code - the coupling-facility structure is in use.
static int MQRC_CF_STRUC_LIST_HDR_IN_USE
          Reason code - the list header associated with the coupling-facility structure is in use.
static int MQRC_CFH_ERROR
          Reason code - PCF header structure is not valid.
static int MQRC_CFIL_ERROR
          Reason code - PCF integer list parameter structure is not valid.
static int MQRC_CFIN_ERROR
          Reason code - PCF integer parameter structure is not valid.
static int MQRC_CFSL_ERROR
          Reason code - PCF string list parameter structure is not valid.
static int MQRC_CFST_ERROR
          Reason code - PCF string parameter structure is not valid.
static int MQRC_CHANNEL_ACTIVATED
          Reason code - a channel is now able to become active because an active slot has been released by another channel.
static int MQRC_CHANNEL_AUTO_DEF_ERROR
          Reason code - automatically defined error
static int MQRC_CHANNEL_AUTO_DEF_OK
          Reason code - Automatic channel definition succeeded.
static int MQRC_CHANNEL_CONV_ERROR
          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.
static int MQRC_CHANNEL_NOT_ACTIVATED
          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.
static int MQRC_CHANNEL_STARTED
          Reason code - either an operator has issued a Start Channel command or an instance of a channel has been successfully established.
static int MQRC_CHANNEL_STOPPED
          Reason code - channel has been stopped.
static int MQRC_CHANNEL_STOPPED_BY_USER
          Reason code - channel has been stopped by an operator.
static int MQRC_CHAR_ATTR_LENGTH_ERROR
          Reason code - length of character attributes is not valid.
static int MQRC_CHAR_ATTRS_ERROR
          Reason code - character attributes string is not valid.
static int MQRC_CHAR_ATTRS_TOO_SHORT
          Reason code - not enough space allowed for character attributes.
static int MQRC_CHAR_CONVERSION_ERROR
          Reason code - returned by the Java MQQueueManager constructor when a required character-set conversion is not available.
static int MQRC_CICS_WAIT_FAILED
          Reason code - wait request has been rejected by CICS.
static int MQRC_CLIENT_CHANNEL_CONFLICT
          Reason code - client channel definition table conflict error.
static int MQRC_CLIENT_CONN_ERROR
          Reason code - an MQCONNX call was issued to connect to a queue manager, but the MQCD channel definition structure was not specified correctly.
static int MQRC_CLIENT_EXIT_ERROR
          Reason code - Error in client exit
static int MQRC_CLIENT_EXIT_LOAD_ERROR
          Reason code - client exit could not be loaded.
static int MQRC_CLUSTER_EXIT_ERROR
          Reason code - cluster workload exit has failed.
static int MQRC_CLUSTER_EXIT_LOAD_ERROR
          Reason code - unable to load cluster workload exit.
static int MQRC_CLUSTER_PUT_INHIBITED
          Reason code - put calls have been inhibited for all queues in cluster.
static int MQRC_CLUSTER_RESOLUTION_ERROR
          Reason code - cluster name resolution failed.
static int MQRC_CLUSTER_RESOURCE_ERROR
          Reason code - cluster resource error.
static int MQRC_CMD_SERVER_NOT_AVAILABLE
          Reason code - the command server that processes administration commands is not available.
static int MQRC_CNO_ERROR
          Reason code - connection options are not valid.
static int MQRC_COD_NOT_VALID_FOR_XCF_Q
          Reason code - COD report option not valid for XCF queue.
static int MQRC_CODED_CHAR_SET_ID_ERROR
          Reason code - the coded character set ID is not valid.
static int MQRC_CONN_ID_IN_USE
          Reason code - connection identifier is already in use.
static int MQRC_CONN_TAG_NOT_RELEASED
          Reason code - an MQDISC call was issued when there was a unit of work outstanding for the connection handle.
static int MQRC_CONN_TAG_NOT_USABLE
          Reason code - the connection tag is not usable.
static int MQRC_CONNECTION_BROKEN
          Reason code - connection to queue manager has been lost.
static int MQRC_CONNECTION_NOT_AUTHORIZED
          Reason code - not authorized for connection.
static int MQRC_CONNECTION_QUIESCING
          Reason code - connection is quiescing.
static int MQRC_CONNECTION_STOPPING
          Reason code - connection is stopping.
static int MQRC_CONTEXT_HANDLE_ERROR
          Reason code - queue handle referred to does not save context.
static int MQRC_CONTEXT_NOT_AVAILABLE
          Reason code - context not available for queue handle referred to.
static int MQRC_CONVERTED_MSG_TOO_BIG
          Reason code - converted data is too big for buffer.
static int MQRC_CONVERTED_STRING_TOO_BIG
          Reason code - converted string is too big for field.
static int MQRC_CORREL_ID_ERROR
          Reason code - correlation ID error.
static int MQRC_CURRENT_RECORD_ERROR
          Reason code - error in current record.
static int MQRC_DATA_LENGTH_ERROR
          Reason code - data length parameter is not valid.
static int MQRC_DB2_NOT_AVAILABLE
          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.
static int MQRC_DBCS_ERROR
          Reason code - DBCS string is not valid.
static int MQRC_DEF_XMIT_Q_TYPE_ERROR
          Reason code - default transmission queue is not local.
static int MQRC_DEF_XMIT_Q_USAGE_ERROR
          Reason code - default transmission queue usage error.
static int MQRC_DLH_ERROR
          Reason code - dead letter header structure is not valid.
static int MQRC_DUPLICATE_RECOV_COORD
          Reason code - recovery coordinator already exists.
static int MQRC_DYNAMIC_Q_NAME_ERROR
          Reason code - name of dynamic queue is not valid.
static int MQRC_ENCODING_NOT_SUPPORTED
          Reason code - the Encoding field in the message descriptor MQMD contains a value that is not supported.
static int MQRC_ENVIRONMENT_ERROR
          Reason code - call not valid in this environment.
static int MQRC_EXPIRY_ERROR
          Reason code - expiry time is not valid.
static int MQRC_FEEDBACK_ERROR
          Reason code - feedback code is not valid.
static int MQRC_FILE_NOT_AUDITED
          Reason code - file has not been audited.
static int MQRC_FILE_SYSTEM_ERROR
          Reason code - error in file system.
static int MQRC_FORMAT_ERROR
          Reason code - message format is not valid.
static int MQRC_FORMAT_NOT_SUPPORTED
          Reason code - The format field in the message descriptor MQMD contains a value that is not supported.
static int MQRC_FUNCTION_NOT_SUPPORTED
          Reason code - An attempt was made to access functionality that is not supported from the environment from which it was called.
static int MQRC_GET_INHIBITED
          Reason code - gets are inhibited for the queue.
static int MQRC_GLOBAL_UOW_CONFLICT
          Reason code - global units of work conflict with each other.
static int MQRC_GMO_ERROR
          Reason code - get-message options object is not valid.
static int MQRC_GROUP_ID_ERROR
          Reason code - group identifier is not valid.
static int MQRC_HANDLE_IN_USE_FOR_UOW
          Reason code - handle is in use for a global unit of work.
static int MQRC_HANDLE_NOT_AVAILABLE
          Reason code - no more handles are available.
static int MQRC_HCONN_ERROR
          Reason code - connection handle is not valid.
static int MQRC_HEADER_ERROR
          Reason code - WebSphere MQ header structure is not valid.
static int MQRC_HOBJ_ERROR
          Reason code - object handle is not valid.
static int MQRC_INCOMPLETE_GROUP
          Reason code - message group is not complete.
static int MQRC_INCOMPLETE_MSG
          Reason code - message is not complete.
static int MQRC_INCONSISTENT_BROWSE
          Reason code - browse specification is inconsistent.
static int MQRC_INCONSISTENT_CCSIDS
          Reason code - message segments have differing CCSIDs.
static int MQRC_INCONSISTENT_ENCODINGS
          Reason code - message segments have differing encodings.
static int MQRC_INCONSISTENT_PERSISTENCE
          Reason code - inconsistent persistence specification.
static int MQRC_INCONSISTENT_UOW
          Reason code - unit-of-work specification is inconsistent.
static int MQRC_INDEX_ERROR
          Reason code - an index parameter to a call or method has a value that is not valid.
static int MQRC_INDEX_NOT_PRESENT
          Reason code - the specified index is not present.
static int MQRC_INHIBIT_VALUE_ERROR
          Reason code - value for inhibit-get or inhibit-put queue attribute is not valid.
static int MQRC_INT_ATTR_COUNT_ERROR
          Reason code - count of integer attributes is not valid.
static int MQRC_INT_ATTR_COUNT_TOO_SMALL
          Reason code - not enough space has been allowed for integer attributes.
static int MQRC_INT_ATTRS_ARRAY_ERROR
          Reason code - integer attributes array is not valid.
static int MQRC_INVALID_MSG_UNDER_CURSOR
          Reason code - message under cursor is not valid for retrieval.
static int MQRC_JMS_FORMAT_ERROR
          Reason code - this reason code is generated when JMS encounters a message that it is unable to parse.
static int MQRC_JSSE_ERROR
          Reason code - JSSE reported an error (for example, while connecting to a queue manager using SSL encryption).
static int MQRC_LOCAL_UOW_CONFLICT
          Reason code - global unit of work conflicts with a local unit of work.
static int MQRC_MATCH_OPTIONS_ERROR
          Reason code - match options are not valid.
static int MQRC_MAX_CONNS_LIMIT_REACHED
          Reason code - maximum number of connections reached.
static int MQRC_MD_ERROR
          Reason code - message descriptor is not valid.
static int MQRC_MDE_ERROR
          Reason code - message descriptor extension is not valid.
static int MQRC_MISSING_REPLY_TO_Q
          Reason code - missing reply-to queue.
static int MQRC_MISSING_WIH
          Reason code - mismatch of queue IndexType and Format field in MQMD.
static int MQRC_MSG_FLAGS_ERROR
          Reason code - message flags are not valid.
static int MQRC_MSG_ID_ERROR
          Reason code - message ID error.
static int MQRC_MSG_MARKED_BROWSE_CO_OP
          Reason code - message is marked
static int MQRC_MSG_NOT_MATCHED
          Reason code - message is not matched.
static int MQRC_MSG_SEQ_NUMBER_ERROR
          Reason code - message sequence number is not valid.
static int MQRC_MSG_TOKEN_ERROR
          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.
static int MQRC_MSG_TOO_BIG_FOR_CHANNEL
          Reason code - message is too big for channel.
static int MQRC_MSG_TOO_BIG_FOR_Q
          Reason code - message length is greater than maximum for queue.
static int MQRC_MSG_TOO_BIG_FOR_Q_MGR
          Reason code - message length is greater than maximum for queue manager.
static int MQRC_MSG_TYPE_ERROR
          Reason code - message type in message descriptor is not valid.
static int MQRC_MULTIPLE_REASONS
          Reason code - multiple reason codes have been returned.
static int MQRC_NAME_IN_USE
          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.
static int MQRC_NAME_NOT_VALID_FOR_TYPE
          Reason code - object name is not valid for object type.
static int MQRC_NEXT_OFFSET_ERROR
          Reason code - error in offset to next record.
static int MQRC_NEXT_RECORD_ERROR
          Reason code - error in next record.
static int MQRC_NO_DESTINATIONS_AVAILABLE
          Reason code - no destination queues are available.
static int MQRC_NO_EXTERNAL_PARTICIPANTS
          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.
static int MQRC_NO_MSG_AVAILABLE
          Reason code - no message is available.
static int MQRC_NO_MSG_LOCKED
          Reason code - no message is locked.
static int MQRC_NO_MSG_UNDER_CURSOR
          Reason code - browse cursor is not positioned on message.
static int MQRC_NO_RECORD_AVAILABLE
          Reason code - no record is available.
static int MQRC_NONE
          Reason code - none.
static int MQRC_NOT_AUTHORIZED
          Reason code - queue is not authorized for access.
static int MQRC_NOT_CONVERTED
          Reason code - message data has not been converted.
static int MQRC_NOT_OPEN_FOR_BROWSE
          Reason code - queue is not open for browse.
static int MQRC_NOT_OPEN_FOR_INPUT
          Reason code - queue is not open for input.
static int MQRC_NOT_OPEN_FOR_INQUIRE
          Reason code - queue is not open for inquire.
static int MQRC_NOT_OPEN_FOR_OUTPUT
          Reason code - queue is not open for output.
static int MQRC_NOT_OPEN_FOR_PASS_ALL
          Reason code - queue not open for pass all context.
static int MQRC_NOT_OPEN_FOR_PASS_IDENT
          Reason code - queue not open for pass identity context.
static int MQRC_NOT_OPEN_FOR_SET
          Reason code - queue is not open for set all context.
static int MQRC_NOT_OPEN_FOR_SET_ALL
          Reason code - queue not open for set all context.
static int MQRC_NOT_OPEN_FOR_SET_IDENT
          Reason code - queue not open for set identity context.
static int MQRC_OBJECT_ALREADY_EXISTS
          Reason code - object already exists.
static int MQRC_OBJECT_CHANGED
          Reason code - object definition has changed since it opened.
static int MQRC_OBJECT_DAMAGED
          Reason code - object has been damaged.
static int MQRC_OBJECT_IN_USE
          Reason code - object is already open with conflicting options.
static int MQRC_OBJECT_LEVEL_INCOMPATIBLE
          Reason code - object level is incompatible.
static int MQRC_OBJECT_NAME_ERROR
          Reason code - object name is not valid.
static int MQRC_OBJECT_NOT_UNIQUE
          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.
static int MQRC_OBJECT_Q_MGR_NAME_ERROR
          Reason code - object queue manager name is not valid.
static int MQRC_OBJECT_RECORDS_ERROR
          Reason code - object records are not valid.
static int MQRC_OBJECT_TYPE_ERROR
          Reason code - object type is not valid.
static int MQRC_OD_ERROR
          Reason code - object descriptor structure is not valid.
static int MQRC_OFFSET_ERROR
          Reason code - message segment offset is not valid.
static int MQRC_OPEN_FAILED
          Reason code - object did not open successfully.
static int MQRC_OPTION_ENVIRONMENT_ERROR
          Reason code - an MQGET call with the MQGMO_MARK_SKIP_BACKOUT option specified was issued from a DB2 Stored Procedure.
static int MQRC_OPTION_NOT_VALID_FOR_TYPE
          Reason code - option is not valid for object type.
static int MQRC_OPTIONS_ERROR
          Reason code - options are not valid or not consistent.
static int MQRC_ORIGINAL_LENGTH_ERROR
          Reason code - original length is not valid.
static int MQRC_OUTCOME_MIXED
          Reason code - result of commit or backout operation is mixed.
static int MQRC_OUTCOME_PENDING
          Reason code - result of commit operation is pending.
static int MQRC_PAGESET_ERROR
          Reason code - error accessing page-set data set.
static int MQRC_PAGESET_FULL
          Reason code - external storage medium is full.
static int MQRC_PARTICIPANT_NOT_AVAILABLE
          Reason code - no participating resource managers have been registered.
static int MQRC_PARTICIPANT_NOT_DEFINED
          Reason code - participant has not been defined.
static int MQRC_PERSISTENCE_ERROR
          Reason code - persistence is not valid.
static int MQRC_PERSISTENT_NOT_ALLOWED
          Reason code - queue does not support persistent messages.
static int MQRC_PMO_ERROR
          Reason code - put-message options object is not valid.
static int MQRC_PMO_RECORD_FLAGS_ERROR
          Reason code - put message record flags not valid.
static int MQRC_PRIORITY_ERROR
          Reason code - message priority is not valid.
static int MQRC_PRIORITY_EXCEEDS_MAXIMUM
          Reason code - message priority exceeds maximum value supported.
static int MQRC_PUT_INHIBITED
          Reason code - put calls are inhibited for the queue.
static int MQRC_PUT_MSG_RECORDS_ERROR
          Reason code - put message records are not valid.
static int MQRC_Q_DELETED
          Reason code - queue has been deleted.
static int MQRC_Q_DEPTH_HIGH
          Reason code - Queue depth high limit reached or exceeded.
static int MQRC_Q_DEPTH_LOW
          Reason code - Queue depth low limit reached or exceeded.
static int MQRC_Q_FULL
          Reason code - queue is full.
static int MQRC_Q_MGR_ACTIVE
          Reason code - the queue manager is active.
static int MQRC_Q_MGR_NAME_ERROR
          Reason code - queue manager name is not valid or not known.
static int MQRC_Q_MGR_NOT_ACTIVE
          Reason code - the queue manager is not active.
static int MQRC_Q_MGR_NOT_AVAILABLE
          Reason code - queue manager is not available for connection.
static int MQRC_Q_MGR_QUIESCING
          Reason code - queue manager is quiescing.
static int MQRC_Q_MGR_STOPPING
          Reason code - queue manager is shutting down.
static int MQRC_Q_NOT_EMPTY
          Reason code - queue contains one or more messages or uncommitted put or get requests.
static int MQRC_Q_SERVICE_INTERVAL_HIGH
          Reason code - Queue service interval high.
static int MQRC_Q_SERVICE_INTERVAL_OK
          Reason code - Queue service interval OK.
static int MQRC_Q_SPACE_NOT_AVAILABLE
          Reason code - no space available on disk for queue.
static int MQRC_Q_TYPE_ERROR
          Reason code - queue type not valid.
static int MQRC_RECS_PRESENT_ERROR
          Reason code - number of records present is not valid.
static int MQRC_REMOTE_Q_NAME_ERROR
          Reason code - remote queue name is not valid.
static int MQRC_REPORT_OPTIONS_ERROR
          Reason code - report options in message descriptor are not valid.
static int MQRC_RESOURCE_PROBLEM
          Reason code - insufficient system resources are available.
static int MQRC_RESPONSE_RECORDS_ERROR
          Reason code - object records not valid.
static int MQRC_RFH_COMMAND_ERROR
          Reason code - the message contains an MQRFH structure, but the command name contained in the NameValueString field is not valid.
static int MQRC_RFH_DUPLICATE_PARM
          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.
static int MQRC_RFH_ERROR
          Reason code - an MQPUT or MQPUT1 call was issued, but the message data contains an MQRFH or MQRFH2 structure that is not valid.
static int MQRC_RFH_PARM_ERROR
          Reason code - the message contains an MQRFH structure, but a parameter name contained in the NameValueString field is not valid for the command specified.
static int MQRC_RFH_PARM_MISSING
          Reason code - the message contains an MQRFH structure, but the command specified in the NameValueString field requires a parameter that is not present.
static int MQRC_RFH_STRING_ERROR
          Reason code - the contents of the NameValueString field in the MQRFH structure are not valid.
static int MQRC_RMH_ERROR
          Reason code - Reference message header structure is not valid.
static int MQRC_SECOND_MARK_NOT_ALLOWED
          Reason code - a message is already marked.
static int MQRC_SECURITY_ERROR
          Reason code - a security error has occurred.
static int MQRC_SEGMENT_LENGTH_ZERO
          Reason code - length of data in message segment is zero.
static int MQRC_SIGNAL_OUTSTANDING
          Reason code - a signal is outstanding for this handle.
static int MQRC_SIGNAL_REQUEST_ACCEPTED
          Reason code - no message returned (but signal request accepted).
static int MQRC_SIGNAL1_ERROR
          Reason code - signal field is not valid.
static int MQRC_SOURCE_BUFFER_ERROR
          Reason code - source buffer parameter is not valid.
static int MQRC_SOURCE_CCSID_ERROR
          Reason code - source coded character set identifier is not valid.
static int MQRC_SOURCE_DECIMAL_ENC_ERROR
          Reason code - packed-decimal encoding specified by receiver is not recognized.
static int MQRC_SOURCE_FLOAT_ENC_ERROR
          Reason code - source floating point encoding specified is not recognized.
static int MQRC_SOURCE_INTEGER_ENC_ERROR
          Reason code - source integer encoding not recognized.
static int MQRC_SOURCE_LENGTH_ERROR
          Reason code - source length parameter is not valid.
static int MQRC_SSL_CERT_STORE_ERROR
          Reason code - SSL CertStore error.
static int MQRC_SSL_CERTIFICATE_REVOKED
          Reason code - SSL certificate has been revoked.
static int MQRC_SSL_INITIALIZATION_ERROR
          Reason code - SSL initialization error.
static int MQRC_SSL_KEY_RESET_ERROR
          Reason code - SSL key reset error.
static int MQRC_SSL_NOT_ALLOWED
          Reason code - SSL is not allowed.
static int MQRC_SSL_PEER_NAME_ERROR
          Reason code - SSL error in peer name.
static int MQRC_SSL_PEER_NAME_MISMATCH
          Reason code - SSL peer name mismatch.
static int MQRC_STOPPED_BY_CLUSTER_EXIT
          Reason code - call has been rejected by cluster workload exit.
static int MQRC_STORAGE_CLASS_ERROR
          Reason code - storage class error.
static int MQRC_STORAGE_NOT_AVAILABLE
          Reason code - insufficient storage is available.
static int MQRC_STRING_ERROR
          Reason code - the string parameter is not valid.
static int MQRC_STRING_LENGTH_ERROR
          The StringLength parameter is not valid.
static int MQRC_STRING_TRUNCATED
          Reason code - the string returned by the call is too long to fit in the buffer provided.
static int MQRC_SUPPRESSED_BY_EXIT
          Reason code - call suppressed by exit program.
static int MQRC_SYNCPOINT_LIMIT_REACHED
          Reason code - no more messages can be handled within current unit of work.
static int MQRC_SYNCPOINT_NOT_AVAILABLE
          Reason code - syncpoint support is not available.
static int MQRC_TARGET_BUFFER_ERROR
          Reason code - target buffer parameter is not valid.
static int MQRC_TARGET_CCSID_ERROR
          Reason code - the coded character-set identifier to which the character data is to be converted is not valid or not supported.
static int MQRC_TARGET_DECIMAL_ENC_ERROR
          Reason code - packed-decimal encoding specified by the receiver is not recognized.
static int MQRC_TARGET_FLOAT_ENC_ERROR
          Reason code - floating-point encoding specified by the receiver is not recognized.
static int MQRC_TARGET_INTEGER_ENC_ERROR
          Reason code - target coded character set identifier is not valid.
static int MQRC_TARGET_LENGTH_ERROR
          Reason code - target length parameter is not valid.
static int MQRC_TM_ERROR
          Reason code - trigger message structure is not valid.
static int MQRC_TMC_ERROR
          Reason code - character trigger message structure is not valid.
static int MQRC_TRIGGER_CONTROL_ERROR
          Reason code - value for trigger-point attribute is not valid.
static int MQRC_TRIGGER_DEPTH_ERROR
          Reason code - value for trigger-depth attribute is not valid.
static int MQRC_TRIGGER_MSG_PRIORITY_ERR
          Reason code - value for trigger-message priority attribute is not valid.
static int MQRC_TRIGGER_TYPE_ERROR
          Reason code - value for trigger-type attribute is not valid.
static int MQRC_TRUNCATED_MSG_ACCEPTED
          Reason code - truncated message returned (processing completed).
static int MQRC_TRUNCATED_MSG_FAILED
          Reason code - truncated message returned (processing not completed).
static int MQRC_UCS2_CONVERSION_ERROR
          Reason code - returned by the Java MQQueueManager constructor when a required character-set conversion is not available.
static int MQRC_UNEXPECTED_ERROR
          Reason code - an unexpected error has occurred.
static int MQRC_UNIT_OF_WORK_NOT_STARTED
          Reason code - the unit of work has not started.
static int MQRC_UNKNOWN_ALIAS_BASE_Q
          Reason code - unknown alias base queue.
static int MQRC_UNKNOWN_DEF_XMIT_Q
          Reason code - unknown default transmission queue.
static int MQRC_UNKNOWN_OBJECT_NAME
          Reason code - unknown object name.
static int MQRC_UNKNOWN_OBJECT_Q_MGR
          Reason code - unknown object queue manager.
static int MQRC_UNKNOWN_REMOTE_Q_MGR
          Reason code - unknown remote queue manager.
static int MQRC_UNKNOWN_REPORT_OPTION
          Reason code - one or more report options in the in message descriptor are not recognized.
static int MQRC_UNKNOWN_XMIT_Q
          Reason code - unknown transmission queue.
static int MQRC_UNSUPPORTED_CIPHER_SUITE
          Reason code - cipher suite is unsupported.
static int MQRC_UOW_CANCELED
          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.
static int MQRC_UOW_ENLISTMENT_ERROR
          Reason code - enlistment in a global unit of work failed.
static int MQRC_UOW_MIX_NOT_SUPPORTED
          Reason code - mixture of unit-of-work calls is not supported.
static int MQRC_UOW_NOT_AVAILABLE
          Reason code - unit of work is not available for the queue manager to use.
static int MQRC_WAIT_INTERVAL_ERROR
          Reason code - wait interval in MQGMO not valid.
static int MQRC_WIH_HEADER
          Reason code - an MQPUT or MQPUT1 call was issued, but the message data contains an MQWIH structure that is not valid.
static int MQRC_WRONG_GMO_VERSION
          Reason code - wrong version of MQGMO has been supplied.
static int MQRC_WRONG_MD_VERSION
          Reason code - wrong version of MQMD has been supplied.
static int MQRC_WXP_ERROR
          Reason code - WXP error.
static int MQRC_XMIT_Q_TYPE_ERROR
          Reason code - transmission queue not local.
static int MQRC_XMIT_Q_USAGE_ERROR
          Reason code - transmission queue not local.
static int MQRC_XQH_ERROR
          Reason code - transmission queue header structure is not valid.
static int MQRC_XWAIT_CANCELED
          Reason code - XA wait has been canceled.
static int MQRC_XWAIT_ERROR
          Reason code - XA wait error.
 int reasonCode
          WebSphere MQ reason code describing the error.
 
Constructor Summary
MQException(int completionCode, int reasonCode, java.lang.Object source)
          Constructs a new MQException object.
 
Method Summary
 java.lang.String getMessage()
          Gets the message detail.
static void logExclude(java.lang.Integer avoidCode)
          Adds an exception type to be kept out of the log.
static void logInclude(java.lang.Integer includeCode)
          Allows an exception type to be put in the log.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MQCC_OK

public static final int MQCC_OK
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.

See Also:
Constant Field Values

MQCC_WARNING

public static final int MQCC_WARNING
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.

See Also:
Constant Field Values

MQCC_FAILED

public static final int MQCC_FAILED
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.

See Also:
Constant Field Values

MQCC_UNKNOWN

public static final int MQCC_UNKNOWN
Completion code - unknown.

See Also:
Constant Field Values

MQRC_NONE

public static final int MQRC_NONE
Reason code - none.

See Also:
Constant Field Values

MQRC_ALIAS_BASE_Q_TYPE_ERROR

public static final int MQRC_ALIAS_BASE_Q_TYPE_ERROR
Reason code - alias base queue not a valid type.

See Also:
Constant Field Values

MQRC_ALREADY_CONNECTED

public static final int MQRC_ALREADY_CONNECTED
Reason code - application is already connected.

See Also:
Constant Field Values

MQRC_BACKED_OUT

public static final int MQRC_BACKED_OUT
Reason code - unit of work is backed out.

See Also:
Constant Field Values

MQRC_BUFFER_ERROR

public static final int MQRC_BUFFER_ERROR
Reason code - buffer parameter is not valid.

See Also:
Constant Field Values

MQRC_BUFFER_LENGTH_ERROR

public static final int MQRC_BUFFER_LENGTH_ERROR
Reason code - buffer length parameter is not valid.

See Also:
Constant Field Values

MQRC_CHAR_ATTR_LENGTH_ERROR

public static final int MQRC_CHAR_ATTR_LENGTH_ERROR
Reason code - length of character attributes is not valid.

See Also:
Constant Field Values

MQRC_CHAR_ATTRS_ERROR

public static final int MQRC_CHAR_ATTRS_ERROR
Reason code - character attributes string is not valid.

See Also:
Constant Field Values

MQRC_CHAR_ATTRS_TOO_SHORT

public static final int MQRC_CHAR_ATTRS_TOO_SHORT
Reason code - not enough space allowed for character attributes.

See Also:
Constant Field Values

MQRC_CONNECTION_BROKEN

public static final int MQRC_CONNECTION_BROKEN
Reason code - connection to queue manager has been lost.

See Also:
Constant Field Values

MQRC_DATA_LENGTH_ERROR

public static final int MQRC_DATA_LENGTH_ERROR
Reason code - data length parameter is not valid.

See Also:
Constant Field Values

MQRC_DYNAMIC_Q_NAME_ERROR

public static final int MQRC_DYNAMIC_Q_NAME_ERROR
Reason code - name of dynamic queue is not valid.

See Also:
Constant Field Values

MQRC_ENVIRONMENT_ERROR

public static final int MQRC_ENVIRONMENT_ERROR
Reason code - call not valid in this environment.

See Also:
Constant Field Values

MQRC_EXPIRY_ERROR

public static final int MQRC_EXPIRY_ERROR
Reason code - expiry time is not valid.

See Also:
Constant Field Values

MQRC_FEEDBACK_ERROR

public static final int MQRC_FEEDBACK_ERROR
Reason code - feedback code is not valid.

See Also:
Constant Field Values

MQRC_GET_INHIBITED

public static final int MQRC_GET_INHIBITED
Reason code - gets are inhibited for the queue.

See Also:
Constant Field Values

MQRC_HANDLE_NOT_AVAILABLE

public static final int MQRC_HANDLE_NOT_AVAILABLE
Reason code - no more handles are available.

See Also:
Constant Field Values

MQRC_HCONN_ERROR

public static final int MQRC_HCONN_ERROR
Reason code - connection handle is not valid.

See Also:
Constant Field Values

MQRC_HOBJ_ERROR

public static final int MQRC_HOBJ_ERROR
Reason code - object handle is not valid.

See Also:
Constant Field Values

MQRC_INHIBIT_VALUE_ERROR

public static final int MQRC_INHIBIT_VALUE_ERROR
Reason code - value for inhibit-get or inhibit-put queue attribute is not valid.

See Also:
Constant Field Values

MQRC_INT_ATTR_COUNT_ERROR

public static final int MQRC_INT_ATTR_COUNT_ERROR
Reason code - count of integer attributes is not valid.

See Also:
Constant Field Values

MQRC_INT_ATTR_COUNT_TOO_SMALL

public static final int MQRC_INT_ATTR_COUNT_TOO_SMALL
Reason code - not enough space has been allowed for integer attributes.

See Also:
Constant Field Values

MQRC_INT_ATTRS_ARRAY_ERROR

public static final int MQRC_INT_ATTRS_ARRAY_ERROR
Reason code - integer attributes array is not valid.

See Also:
Constant Field Values

MQRC_SYNCPOINT_LIMIT_REACHED

public static final int MQRC_SYNCPOINT_LIMIT_REACHED
Reason code - no more messages can be handled within current unit of work.

See Also:
Constant Field Values

MQRC_MAX_CONNS_LIMIT_REACHED

public static final int MQRC_MAX_CONNS_LIMIT_REACHED
Reason code - maximum number of connections reached.

See Also:
Constant Field Values

MQRC_MD_ERROR

public static final int MQRC_MD_ERROR
Reason code - message descriptor is not valid.

See Also:
Constant Field Values

MQRC_MISSING_REPLY_TO_Q

public static final int MQRC_MISSING_REPLY_TO_Q
Reason code - missing reply-to queue.

See Also:
Constant Field Values

MQRC_MSG_TYPE_ERROR

public static final int MQRC_MSG_TYPE_ERROR
Reason code - message type in message descriptor is not valid.

See Also:
Constant Field Values

MQRC_MSG_TOO_BIG_FOR_Q

public static final int MQRC_MSG_TOO_BIG_FOR_Q
Reason code - message length is greater than maximum for queue.

See Also:
Constant Field Values

MQRC_MSG_TOO_BIG_FOR_Q_MGR

public static final int MQRC_MSG_TOO_BIG_FOR_Q_MGR
Reason code - message length is greater than maximum for queue manager.

See Also:
Constant Field Values

MQRC_NO_MSG_AVAILABLE

public static final int MQRC_NO_MSG_AVAILABLE
Reason code - no message is available.

See Also:
Constant Field Values

MQRC_NO_MSG_UNDER_CURSOR

public static final int MQRC_NO_MSG_UNDER_CURSOR
Reason code - browse cursor is not positioned on message.

See Also:
Constant Field Values

MQRC_NOT_AUTHORIZED

public static final int MQRC_NOT_AUTHORIZED
Reason code - queue is not authorized for access.

See Also:
Constant Field Values

MQRC_NOT_OPEN_FOR_BROWSE

public static final int MQRC_NOT_OPEN_FOR_BROWSE
Reason code - queue is not open for browse.

See Also:
Constant Field Values

MQRC_NOT_OPEN_FOR_INPUT

public static final int MQRC_NOT_OPEN_FOR_INPUT
Reason code - queue is not open for input.

See Also:
Constant Field Values

MQRC_NOT_OPEN_FOR_INQUIRE

public static final int MQRC_NOT_OPEN_FOR_INQUIRE
Reason code - queue is not open for inquire.

See Also:
Constant Field Values

MQRC_NOT_OPEN_FOR_OUTPUT

public static final int MQRC_NOT_OPEN_FOR_OUTPUT
Reason code - queue is not open for output.

See Also:
Constant Field Values

MQRC_NOT_OPEN_FOR_SET

public static final int MQRC_NOT_OPEN_FOR_SET
Reason code - queue is not open for set all context.

See Also:
Constant Field Values

MQRC_OBJECT_CHANGED

public static final int MQRC_OBJECT_CHANGED
Reason code - object definition has changed since it opened.

See Also:
Constant Field Values

MQRC_OBJECT_IN_USE

public static final int MQRC_OBJECT_IN_USE
Reason code - object is already open with conflicting options.

See Also:
Constant Field Values

MQRC_OBJECT_TYPE_ERROR

public static final int MQRC_OBJECT_TYPE_ERROR
Reason code - object type is not valid.

See Also:
Constant Field Values

MQRC_OD_ERROR

public static final int MQRC_OD_ERROR
Reason code - object descriptor structure is not valid.

See Also:
Constant Field Values

MQRC_OPTION_NOT_VALID_FOR_TYPE

public static final int MQRC_OPTION_NOT_VALID_FOR_TYPE
Reason code - option is not valid for object type.

See Also:
Constant Field Values

MQRC_OPTIONS_ERROR

public static final int MQRC_OPTIONS_ERROR
Reason code - options are not valid or not consistent.

See Also:
Constant Field Values

MQRC_PERSISTENCE_ERROR

public static final int MQRC_PERSISTENCE_ERROR
Reason code - persistence is not valid.

See Also:
Constant Field Values

MQRC_PERSISTENT_NOT_ALLOWED

public static final int MQRC_PERSISTENT_NOT_ALLOWED
Reason code - queue does not support persistent messages.

See Also:
Constant Field Values

MQRC_PRIORITY_EXCEEDS_MAXIMUM

public static final int MQRC_PRIORITY_EXCEEDS_MAXIMUM
Reason code - message priority exceeds maximum value supported.

See Also:
Constant Field Values

MQRC_PRIORITY_ERROR

public static final int MQRC_PRIORITY_ERROR
Reason code - message priority is not valid.

See Also:
Constant Field Values

MQRC_PUT_INHIBITED

public static final int MQRC_PUT_INHIBITED
Reason code - put calls are inhibited for the queue.

See Also:
Constant Field Values

MQRC_Q_DELETED

public static final int MQRC_Q_DELETED
Reason code - queue has been deleted.

See Also:
Constant Field Values

MQRC_Q_FULL

public static final int MQRC_Q_FULL
Reason code - queue is full.

See Also:
Constant Field Values

MQRC_Q_NOT_EMPTY

public static final int MQRC_Q_NOT_EMPTY
Reason code - queue contains one or more messages or uncommitted put or get requests.

See Also:
Constant Field Values

MQRC_Q_SPACE_NOT_AVAILABLE

public static final int MQRC_Q_SPACE_NOT_AVAILABLE
Reason code - no space available on disk for queue.

See Also:
Constant Field Values

MQRC_Q_TYPE_ERROR

public static final int MQRC_Q_TYPE_ERROR
Reason code - queue type not valid.

See Also:
Constant Field Values

MQRC_Q_MGR_NAME_ERROR

public static final int MQRC_Q_MGR_NAME_ERROR
Reason code - queue manager name is not valid or not known.

See Also:
Constant Field Values

MQRC_Q_MGR_NOT_AVAILABLE

public static final int MQRC_Q_MGR_NOT_AVAILABLE
Reason code - queue manager is not available for connection.

See Also:
Constant Field Values

MQRC_REPORT_OPTIONS_ERROR

public static final int MQRC_REPORT_OPTIONS_ERROR
Reason code - report options in message descriptor are not valid.

See Also:
Constant Field Values

MQRC_SECOND_MARK_NOT_ALLOWED

public static final int MQRC_SECOND_MARK_NOT_ALLOWED
Reason code - a message is already marked.

See Also:
Constant Field Values

MQRC_SECURITY_ERROR

public static final int MQRC_SECURITY_ERROR
Reason code - a security error has occurred.

See Also:
Constant Field Values

MQRC_SIGNAL_OUTSTANDING

public static final int MQRC_SIGNAL_OUTSTANDING
Reason code - a signal is outstanding for this handle.

See Also:
Constant Field Values

MQRC_SIGNAL_REQUEST_ACCEPTED

public static final int MQRC_SIGNAL_REQUEST_ACCEPTED
Reason code - no message returned (but signal request accepted).

See Also:
Constant Field Values

MQRC_STORAGE_NOT_AVAILABLE

public static final int MQRC_STORAGE_NOT_AVAILABLE
Reason code - insufficient storage is available.

See Also:
Constant Field Values

MQRC_SYNCPOINT_NOT_AVAILABLE

public static final int MQRC_SYNCPOINT_NOT_AVAILABLE
Reason code - syncpoint support is not available.

See Also:
Constant Field Values

MQRC_TRIGGER_CONTROL_ERROR

public static final int MQRC_TRIGGER_CONTROL_ERROR
Reason code - value for trigger-point attribute is not valid.

See Also:
Constant Field Values

MQRC_TRIGGER_DEPTH_ERROR

public static final int MQRC_TRIGGER_DEPTH_ERROR
Reason code - value for trigger-depth attribute is not valid.

See Also:
Constant Field Values

MQRC_TRIGGER_MSG_PRIORITY_ERR

public static final int MQRC_TRIGGER_MSG_PRIORITY_ERR
Reason code - value for trigger-message priority attribute is not valid.

See Also:
Constant Field Values

MQRC_TRIGGER_TYPE_ERROR

public static final int MQRC_TRIGGER_TYPE_ERROR
Reason code - value for trigger-type attribute is not valid.

See Also:
Constant Field Values

MQRC_TRUNCATED_MSG_ACCEPTED

public static final int MQRC_TRUNCATED_MSG_ACCEPTED
Reason code - truncated message returned (processing completed).

See Also:
Constant Field Values

MQRC_TRUNCATED_MSG_FAILED

public static final int MQRC_TRUNCATED_MSG_FAILED
Reason code - truncated message returned (processing not completed).

See Also:
Constant Field Values

MQRC_UNKNOWN_ALIAS_BASE_Q

public static final int MQRC_UNKNOWN_ALIAS_BASE_Q
Reason code - unknown alias base queue.

See Also:
Constant Field Values

MQRC_UNKNOWN_OBJECT_NAME

public static final int MQRC_UNKNOWN_OBJECT_NAME
Reason code - unknown object name.

See Also:
Constant Field Values

MQRC_UNKNOWN_OBJECT_Q_MGR

public static final int MQRC_UNKNOWN_OBJECT_Q_MGR
Reason code - unknown object queue manager.

See Also:
Constant Field Values

MQRC_UNKNOWN_REMOTE_Q_MGR

public static final int MQRC_UNKNOWN_REMOTE_Q_MGR
Reason code - unknown remote queue manager.

See Also:
Constant Field Values

MQRC_WAIT_INTERVAL_ERROR

public static final int MQRC_WAIT_INTERVAL_ERROR
Reason code - wait interval in MQGMO not valid.

See Also:
Constant Field Values

MQRC_XMIT_Q_TYPE_ERROR

public static final int MQRC_XMIT_Q_TYPE_ERROR
Reason code - transmission queue not local.

See Also:
Constant Field Values

MQRC_XMIT_Q_USAGE_ERROR

public static final int MQRC_XMIT_Q_USAGE_ERROR
Reason code - transmission queue not local.

See Also:
Constant Field Values

MQRC_NOT_OPEN_FOR_PASS_ALL

public static final int MQRC_NOT_OPEN_FOR_PASS_ALL
Reason code - queue not open for pass all context.

See Also:
Constant Field Values

MQRC_NOT_OPEN_FOR_PASS_IDENT

public static final int MQRC_NOT_OPEN_FOR_PASS_IDENT
Reason code - queue not open for pass identity context.

See Also:
Constant Field Values

MQRC_NOT_OPEN_FOR_SET_ALL

public static final int MQRC_NOT_OPEN_FOR_SET_ALL
Reason code - queue not open for set all context.

See Also:
Constant Field Values

MQRC_NOT_OPEN_FOR_SET_IDENT

public static final int MQRC_NOT_OPEN_FOR_SET_IDENT
Reason code - queue not open for set identity context.

See Also:
Constant Field Values

MQRC_CONTEXT_HANDLE_ERROR

public static final int MQRC_CONTEXT_HANDLE_ERROR
Reason code - queue handle referred to does not save context.

See Also:
Constant Field Values

MQRC_CONTEXT_NOT_AVAILABLE

public static final int MQRC_CONTEXT_NOT_AVAILABLE
Reason code - context not available for queue handle referred to.

See Also:
Constant Field Values

MQRC_SIGNAL1_ERROR

public static final int MQRC_SIGNAL1_ERROR
Reason code - signal field is not valid.

See Also:
Constant Field Values

MQRC_OBJECT_ALREADY_EXISTS

public static final int MQRC_OBJECT_ALREADY_EXISTS
Reason code - object already exists.

See Also:
Constant Field Values

MQRC_OBJECT_DAMAGED

public static final int MQRC_OBJECT_DAMAGED
Reason code - object has been damaged.

See Also:
Constant Field Values

MQRC_RESOURCE_PROBLEM

public static final int MQRC_RESOURCE_PROBLEM
Reason code - insufficient system resources are available.

See Also:
Constant Field Values

MQRC_ANOTHER_Q_MGR_CONNECTED

public static final int MQRC_ANOTHER_Q_MGR_CONNECTED
Reason code - another queue manager is already connected.

See Also:
Constant Field Values

MQRC_UNKNOWN_REPORT_OPTION

public static final int MQRC_UNKNOWN_REPORT_OPTION
Reason code - one or more report options in the in message descriptor are not recognized.

See Also:
Constant Field Values

MQRC_STORAGE_CLASS_ERROR

public static final int MQRC_STORAGE_CLASS_ERROR
Reason code - storage class error.

See Also:
Constant Field Values

MQRC_COD_NOT_VALID_FOR_XCF_Q

public static final int MQRC_COD_NOT_VALID_FOR_XCF_Q
Reason code - COD report option not valid for XCF queue.

See Also:
Constant Field Values

MQRC_XWAIT_CANCELED

public static final int MQRC_XWAIT_CANCELED
Reason code - XA wait has been canceled.

See Also:
Constant Field Values

MQRC_XWAIT_ERROR

public static final int MQRC_XWAIT_ERROR
Reason code - XA wait error.

See Also:
Constant Field Values

MQRC_SUPPRESSED_BY_EXIT

public static final int MQRC_SUPPRESSED_BY_EXIT
Reason code - call suppressed by exit program.

See Also:
Constant Field Values

MQRC_FORMAT_ERROR

public static final int MQRC_FORMAT_ERROR
Reason code - message format is not valid.

See Also:
Constant Field Values

MQRC_SOURCE_CCSID_ERROR

public static final int MQRC_SOURCE_CCSID_ERROR
Reason code - source coded character set identifier is not valid.

See Also:
Constant Field Values

MQRC_SOURCE_INTEGER_ENC_ERROR

public static final int MQRC_SOURCE_INTEGER_ENC_ERROR
Reason code - source integer encoding not recognized.

See Also:
Constant Field Values

MQRC_SOURCE_DECIMAL_ENC_ERROR

public static final int MQRC_SOURCE_DECIMAL_ENC_ERROR
Reason code - packed-decimal encoding specified by receiver is not recognized.

See Also:
Constant Field Values

MQRC_SOURCE_FLOAT_ENC_ERROR

public static final int MQRC_SOURCE_FLOAT_ENC_ERROR
Reason code - source floating point encoding specified is not recognized.

See Also:
Constant Field Values

MQRC_TARGET_CCSID_ERROR

public static final int MQRC_TARGET_CCSID_ERROR
Reason code - the coded character-set identifier to which the character data is to be converted is not valid or not supported.

See Also:
Constant Field Values

MQRC_TARGET_INTEGER_ENC_ERROR

public static final int MQRC_TARGET_INTEGER_ENC_ERROR
Reason code - target coded character set identifier is not valid.

See Also:
Constant Field Values

MQRC_TARGET_DECIMAL_ENC_ERROR

public static final int MQRC_TARGET_DECIMAL_ENC_ERROR
Reason code - packed-decimal encoding specified by the receiver is not recognized.

See Also:
Constant Field Values

MQRC_TARGET_FLOAT_ENC_ERROR

public static final int MQRC_TARGET_FLOAT_ENC_ERROR
Reason code - floating-point encoding specified by the receiver is not recognized.

See Also:
Constant Field Values

MQRC_NOT_CONVERTED

public static final int MQRC_NOT_CONVERTED
Reason code - message data has not been converted.

See Also:
Constant Field Values

MQRC_CONVERTED_MSG_TOO_BIG

public static final int MQRC_CONVERTED_MSG_TOO_BIG
Reason code - converted data is too big for buffer.

See Also:
Constant Field Values

MQRC_NO_EXTERNAL_PARTICIPANTS

public static final int MQRC_NO_EXTERNAL_PARTICIPANTS
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.

See Also:
Constant Field Values

MQRC_PARTICIPANT_NOT_AVAILABLE

public static final int MQRC_PARTICIPANT_NOT_AVAILABLE
Reason code - no participating resource managers have been registered.

See Also:
Constant Field Values

MQRC_OUTCOME_MIXED

public static final int MQRC_OUTCOME_MIXED
Reason code - result of commit or backout operation is mixed.

See Also:
Constant Field Values

MQRC_OUTCOME_PENDING

public static final int MQRC_OUTCOME_PENDING
Reason code - result of commit operation is pending.

See Also:
Constant Field Values

MQRC_ADAPTER_STORAGE_SHORTAGE

public static final int MQRC_ADAPTER_STORAGE_SHORTAGE
Reason code - insufficient storage for adapter.

See Also:
Constant Field Values

MQRC_ADAPTER_CONN_LOAD_ERROR

public static final int MQRC_ADAPTER_CONN_LOAD_ERROR
Reason code - unable to load adapter connection module.

See Also:
Constant Field Values

MQRC_ADAPTER_SERV_LOAD_ERROR

public static final int MQRC_ADAPTER_SERV_LOAD_ERROR
Reason code - unable to load adapter service module.

See Also:
Constant Field Values

MQRC_ADAPTER_DEFS_ERROR

public static final int MQRC_ADAPTER_DEFS_ERROR
Reason code - adapter subsystem definition module not valid.

See Also:
Constant Field Values

MQRC_ADAPTER_DEFS_LOAD_ERROR

public static final int MQRC_ADAPTER_DEFS_LOAD_ERROR
Reason code - unable to load adapter subsystem definition module.

See Also:
Constant Field Values

MQRC_ADAPTER_CONV_LOAD_ERROR

public static final int MQRC_ADAPTER_CONV_LOAD_ERROR
Reason code - unable to load data conversion services modules.

See Also:
Constant Field Values

MQRC_MULTIPLE_REASONS

public static final int MQRC_MULTIPLE_REASONS
Reason code - multiple reason codes have been returned.

See Also:
Constant Field Values

MQRC_OPEN_FAILED

public static final int MQRC_OPEN_FAILED
Reason code - object did not open successfully.

See Also:
Constant Field Values

MQRC_ADAPTER_DISC_LOAD_ERROR

public static final int MQRC_ADAPTER_DISC_LOAD_ERROR
Reason code - unable to load adapter disconnection module.

See Also:
Constant Field Values

MQRC_CNO_ERROR

public static final int MQRC_CNO_ERROR
Reason code - connection options are not valid.

See Also:
Constant Field Values

MQRC_CICS_WAIT_FAILED

public static final int MQRC_CICS_WAIT_FAILED
Reason code - wait request has been rejected by CICS.

See Also:
Constant Field Values

MQRC_DLH_ERROR

public static final int MQRC_DLH_ERROR
Reason code - dead letter header structure is not valid.

See Also:
Constant Field Values

MQRC_HEADER_ERROR

public static final int MQRC_HEADER_ERROR
Reason code - WebSphere MQ header structure is not valid.

See Also:
Constant Field Values

MQRC_SOURCE_LENGTH_ERROR

public static final int MQRC_SOURCE_LENGTH_ERROR
Reason code - source length parameter is not valid.

See Also:
Constant Field Values

MQRC_TARGET_LENGTH_ERROR

public static final int MQRC_TARGET_LENGTH_ERROR
Reason code - target length parameter is not valid.

See Also:
Constant Field Values

MQRC_SOURCE_BUFFER_ERROR

public static final int MQRC_SOURCE_BUFFER_ERROR
Reason code - source buffer parameter is not valid.

See Also:
Constant Field Values

MQRC_TARGET_BUFFER_ERROR

public static final int MQRC_TARGET_BUFFER_ERROR
Reason code - target buffer parameter is not valid.

See Also:
Constant Field Values

MQRC_DBCS_ERROR

public static final int MQRC_DBCS_ERROR
Reason code - DBCS string is not valid.

See Also:
Constant Field Values

MQRC_OBJECT_NAME_ERROR

public static final int MQRC_OBJECT_NAME_ERROR
Reason code - object name is not valid.

See Also:
Constant Field Values

MQRC_OBJECT_Q_MGR_NAME_ERROR

public static final int MQRC_OBJECT_Q_MGR_NAME_ERROR
Reason code - object queue manager name is not valid.

See Also:
Constant Field Values

MQRC_RECS_PRESENT_ERROR

public static final int MQRC_RECS_PRESENT_ERROR
Reason code - number of records present is not valid.

See Also:
Constant Field Values

MQRC_OBJECT_RECORDS_ERROR

public static final int MQRC_OBJECT_RECORDS_ERROR
Reason code - object records are not valid.

See Also:
Constant Field Values

MQRC_RESPONSE_RECORDS_ERROR

public static final int MQRC_RESPONSE_RECORDS_ERROR
Reason code - object records not valid.

See Also:
Constant Field Values

MQRC_ASID_MISMATCH

public static final int MQRC_ASID_MISMATCH
Reason code - primary and home ASIDs differ.

See Also:
Constant Field Values

MQRC_PMO_RECORD_FLAGS_ERROR

public static final int MQRC_PMO_RECORD_FLAGS_ERROR
Reason code - put message record flags not valid.

See Also:
Constant Field Values

MQRC_PUT_MSG_RECORDS_ERROR

public static final int MQRC_PUT_MSG_RECORDS_ERROR
Reason code - put message records are not valid.

See Also:
Constant Field Values

MQRC_CONN_ID_IN_USE

public static final int MQRC_CONN_ID_IN_USE
Reason code - connection identifier is already in use.

See Also:
Constant Field Values

MQRC_Q_MGR_QUIESCING

public static final int MQRC_Q_MGR_QUIESCING
Reason code - queue manager is quiescing.

See Also:
Constant Field Values

MQRC_Q_MGR_STOPPING

public static final int MQRC_Q_MGR_STOPPING
Reason code - queue manager is shutting down.

See Also:
Constant Field Values

MQRC_DUPLICATE_RECOV_COORD

public static final int MQRC_DUPLICATE_RECOV_COORD
Reason code - recovery coordinator already exists.

See Also:
Constant Field Values

MQRC_PMO_ERROR

public static final int MQRC_PMO_ERROR
Reason code - put-message options object is not valid.

See Also:
Constant Field Values

MQRC_API_EXIT_LOAD_ERROR

public static final int MQRC_API_EXIT_LOAD_ERROR
Reason code - unable to load the API exit.

See Also:
Constant Field Values

MQRC_REMOTE_Q_NAME_ERROR

public static final int MQRC_REMOTE_Q_NAME_ERROR
Reason code - remote queue name is not valid.

See Also:
Constant Field Values

MQRC_INCONSISTENT_PERSISTENCE

public static final int MQRC_INCONSISTENT_PERSISTENCE
Reason code - inconsistent persistence specification.

See Also:
Constant Field Values

MQRC_GMO_ERROR

public static final int MQRC_GMO_ERROR
Reason code - get-message options object is not valid.

See Also:
Constant Field Values

MQRC_STOPPED_BY_CLUSTER_EXIT

public static final int MQRC_STOPPED_BY_CLUSTER_EXIT
Reason code - call has been rejected by cluster workload exit.

See Also:
Constant Field Values

MQRC_CLUSTER_RESOLUTION_ERROR

public static final int MQRC_CLUSTER_RESOLUTION_ERROR
Reason code - cluster name resolution failed.

See Also:
Constant Field Values

MQRC_CONVERTED_STRING_TOO_BIG

public static final int MQRC_CONVERTED_STRING_TOO_BIG
Reason code - converted string is too big for field.

See Also:
Constant Field Values

MQRC_TMC_ERROR

public static final int MQRC_TMC_ERROR
Reason code - character trigger message structure is not valid.

See Also:
Constant Field Values

MQRC_PAGESET_FULL

public static final int MQRC_PAGESET_FULL
Reason code - external storage medium is full.

See Also:
Constant Field Values

MQRC_PAGESET_ERROR

public static final int MQRC_PAGESET_ERROR
Reason code - error accessing page-set data set.

See Also:
Constant Field Values

MQRC_NAME_NOT_VALID_FOR_TYPE

public static final int MQRC_NAME_NOT_VALID_FOR_TYPE
Reason code - object name is not valid for object type.

See Also:
Constant Field Values

MQRC_UNEXPECTED_ERROR

public static final int MQRC_UNEXPECTED_ERROR
Reason code - an unexpected error has occurred.

See Also:
Constant Field Values

MQRC_UNKNOWN_XMIT_Q

public static final int MQRC_UNKNOWN_XMIT_Q
Reason code - unknown transmission queue.

See Also:
Constant Field Values

MQRC_UNKNOWN_DEF_XMIT_Q

public static final int MQRC_UNKNOWN_DEF_XMIT_Q
Reason code - unknown default transmission queue.

See Also:
Constant Field Values

MQRC_DEF_XMIT_Q_TYPE_ERROR

public static final int MQRC_DEF_XMIT_Q_TYPE_ERROR
Reason code - default transmission queue is not local.

See Also:
Constant Field Values

MQRC_DEF_XMIT_Q_USAGE_ERROR

public static final int MQRC_DEF_XMIT_Q_USAGE_ERROR
Reason code - default transmission queue usage error.

See Also:
Constant Field Values

MQRC_MSG_MARKED_BROWSE_CO_OP

public static final int MQRC_MSG_MARKED_BROWSE_CO_OP
Reason code - message is marked

See Also:
Constant Field Values

MQRC_NAME_IN_USE

public static final int MQRC_NAME_IN_USE
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 .

See Also:
Constant Field Values

MQRC_CONNECTION_QUIESCING

public static final int MQRC_CONNECTION_QUIESCING
Reason code - connection is quiescing.

See Also:
Constant Field Values

MQRC_CONNECTION_STOPPING

public static final int MQRC_CONNECTION_STOPPING
Reason code - connection is stopping.

See Also:
Constant Field Values

MQRC_ADAPTER_NOT_AVAILABLE

public static final int MQRC_ADAPTER_NOT_AVAILABLE
Reason code - adapter not available.

See Also:
Constant Field Values

MQRC_MSG_ID_ERROR

public static final int MQRC_MSG_ID_ERROR
Reason code - message ID error.

See Also:
Constant Field Values

MQRC_CORREL_ID_ERROR

public static final int MQRC_CORREL_ID_ERROR
Reason code - correlation ID error.

See Also:
Constant Field Values

MQRC_FILE_SYSTEM_ERROR

public static final int MQRC_FILE_SYSTEM_ERROR
Reason code - error in file system.

See Also:
Constant Field Values

MQRC_NO_MSG_LOCKED

public static final int MQRC_NO_MSG_LOCKED
Reason code - no message is locked.

See Also:
Constant Field Values

MQRC_FILE_NOT_AUDITED

public static final int MQRC_FILE_NOT_AUDITED
Reason code - file has not been audited.

See Also:
Constant Field Values

MQRC_CONNECTION_NOT_AUTHORIZED

public static final int MQRC_CONNECTION_NOT_AUTHORIZED
Reason code - not authorized for connection.

See Also:
Constant Field Values

MQRC_MSG_TOO_BIG_FOR_CHANNEL

public static final int MQRC_MSG_TOO_BIG_FOR_CHANNEL
Reason code - message is too big for channel.

See Also:
Constant Field Values

MQRC_CALL_IN_PROGRESS

public static final int MQRC_CALL_IN_PROGRESS
Reason code - MQI was entered before previous call was complete.

See Also:
Constant Field Values

MQRC_RMH_ERROR

public static final int MQRC_RMH_ERROR
Reason code - Reference message header structure is not valid.

See Also:
Constant Field Values

MQRC_Q_MGR_ACTIVE

public static final int MQRC_Q_MGR_ACTIVE
Reason code - the queue manager is active.

See Also:
Constant Field Values

MQRC_Q_MGR_NOT_ACTIVE

public static final int MQRC_Q_MGR_NOT_ACTIVE
Reason code - the queue manager is not active.

See Also:
Constant Field Values

MQRC_Q_DEPTH_HIGH

public static final int MQRC_Q_DEPTH_HIGH
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.

See Also:
Constant Field Values

MQRC_Q_DEPTH_LOW

public static final int MQRC_Q_DEPTH_LOW
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.

See Also:
Constant Field Values

MQRC_Q_SERVICE_INTERVAL_HIGH

public static final int MQRC_Q_SERVICE_INTERVAL_HIGH
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.

See Also:
Constant Field Values

MQRC_Q_SERVICE_INTERVAL_OK

public static final int MQRC_Q_SERVICE_INTERVAL_OK
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.

See Also:
Constant Field Values

MQRC_UNIT_OF_WORK_NOT_STARTED

public static final int MQRC_UNIT_OF_WORK_NOT_STARTED
Reason code - the unit of work has not started.

See Also:
Constant Field Values

MQRC_CHANNEL_AUTO_DEF_OK

public static final int MQRC_CHANNEL_AUTO_DEF_OK
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.

See Also:
Constant Field Values

MQRC_CHANNEL_AUTO_DEF_ERROR

public static final int MQRC_CHANNEL_AUTO_DEF_ERROR
Reason code - automatically defined error

See Also:
Constant Field Values

MQRC_CFH_ERROR

public static final int MQRC_CFH_ERROR
Reason code - PCF header structure is not valid.

See Also:
Constant Field Values

MQRC_CFIL_ERROR

public static final int MQRC_CFIL_ERROR
Reason code - PCF integer list parameter structure is not valid.

See Also:
Constant Field Values

MQRC_CFIN_ERROR

public static final int MQRC_CFIN_ERROR
Reason code - PCF integer parameter structure is not valid.

See Also:
Constant Field Values

MQRC_CFSL_ERROR

public static final int MQRC_CFSL_ERROR
Reason code - PCF string list parameter structure is not valid.

See Also:
Constant Field Values

MQRC_CFST_ERROR

public static final int MQRC_CFST_ERROR
Reason code - PCF string parameter structure is not valid.

See Also:
Constant Field Values

MQRC_INCOMPLETE_GROUP

public static final int MQRC_INCOMPLETE_GROUP
Reason code - message group is not complete.

See Also:
Constant Field Values

MQRC_INCOMPLETE_MSG

public static final int MQRC_INCOMPLETE_MSG
Reason code - message is not complete.

See Also:
Constant Field Values

MQRC_INCONSISTENT_CCSIDS

public static final int MQRC_INCONSISTENT_CCSIDS
Reason code - message segments have differing CCSIDs.

See Also:
Constant Field Values

MQRC_INCONSISTENT_ENCODINGS

public static final int MQRC_INCONSISTENT_ENCODINGS
Reason code - message segments have differing encodings.

See Also:
Constant Field Values

MQRC_INCONSISTENT_UOW

public static final int MQRC_INCONSISTENT_UOW
Reason code - unit-of-work specification is inconsistent.

See Also:
Constant Field Values

MQRC_INVALID_MSG_UNDER_CURSOR

public static final int MQRC_INVALID_MSG_UNDER_CURSOR
Reason code - message under cursor is not valid for retrieval.

See Also:
Constant Field Values

MQRC_MATCH_OPTIONS_ERROR

public static final int MQRC_MATCH_OPTIONS_ERROR
Reason code - match options are not valid.

See Also:
Constant Field Values

MQRC_MDE_ERROR

public static final int MQRC_MDE_ERROR
Reason code - message descriptor extension is not valid.

See Also:
Constant Field Values

MQRC_MSG_FLAGS_ERROR

public static final int MQRC_MSG_FLAGS_ERROR
Reason code - message flags are not valid.

See Also:
Constant Field Values

MQRC_MSG_SEQ_NUMBER_ERROR

public static final int MQRC_MSG_SEQ_NUMBER_ERROR
Reason code - message sequence number is not valid.

See Also:
Constant Field Values

MQRC_OFFSET_ERROR

public static final int MQRC_OFFSET_ERROR
Reason code - message segment offset is not valid.

See Also:
Constant Field Values

MQRC_ORIGINAL_LENGTH_ERROR

public static final int MQRC_ORIGINAL_LENGTH_ERROR
Reason code - original length is not valid.

See Also:
Constant Field Values

MQRC_SEGMENT_LENGTH_ZERO

public static final int MQRC_SEGMENT_LENGTH_ZERO
Reason code - length of data in message segment is zero.

See Also:
Constant Field Values

MQRC_UOW_NOT_AVAILABLE

public static final int MQRC_UOW_NOT_AVAILABLE
Reason code - unit of work is not available for the queue manager to use.

See Also:
Constant Field Values

MQRC_WRONG_GMO_VERSION

public static final int MQRC_WRONG_GMO_VERSION
Reason code - wrong version of MQGMO has been supplied.

See Also:
Constant Field Values

MQRC_WRONG_MD_VERSION

public static final int MQRC_WRONG_MD_VERSION
Reason code - wrong version of MQMD has been supplied.

See Also:
Constant Field Values

MQRC_GROUP_ID_ERROR

public static final int MQRC_GROUP_ID_ERROR
Reason code - group identifier is not valid.

See Also:
Constant Field Values

MQRC_INCONSISTENT_BROWSE

public static final int MQRC_INCONSISTENT_BROWSE
Reason code - browse specification is inconsistent.

See Also:
Constant Field Values

MQRC_XQH_ERROR

public static final int MQRC_XQH_ERROR
Reason code - transmission queue header structure is not valid.

See Also:
Constant Field Values

MQRC_TM_ERROR

public static final int MQRC_TM_ERROR
Reason code - trigger message structure is not valid.

See Also:
Constant Field Values

MQRC_CLUSTER_EXIT_ERROR

public static final int MQRC_CLUSTER_EXIT_ERROR
Reason code - cluster workload exit has failed.

See Also:
Constant Field Values

MQRC_CLUSTER_EXIT_LOAD_ERROR

public static final int MQRC_CLUSTER_EXIT_LOAD_ERROR
Reason code - unable to load cluster workload exit.

See Also:
Constant Field Values

MQRC_CLUSTER_PUT_INHIBITED

public static final int MQRC_CLUSTER_PUT_INHIBITED
Reason code - put calls have been inhibited for all queues in cluster.

See Also:
Constant Field Values

MQRC_CLUSTER_RESOURCE_ERROR

public static final int MQRC_CLUSTER_RESOURCE_ERROR
Reason code - cluster resource error.

See Also:
Constant Field Values

MQRC_NO_DESTINATIONS_AVAILABLE

public static final int MQRC_NO_DESTINATIONS_AVAILABLE
Reason code - no destination queues are available.

See Also:
Constant Field Values

MQRC_OPTION_ENVIRONMENT_ERROR

public static final int MQRC_OPTION_ENVIRONMENT_ERROR
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.

See Also:
Constant Field Values

MQRC_CD_ERROR

public static final int MQRC_CD_ERROR
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.

See Also:
Constant Field Values

MQRC_CLIENT_CONN_ERROR

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

See Also:
Constant Field Values

MQRC_CHANNEL_STOPPED_BY_USER

public static final int MQRC_CHANNEL_STOPPED_BY_USER
Reason code - channel has been stopped by an operator.

See Also:
Constant Field Values

MQRC_CHANNEL_STARTED

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

See Also:
Constant Field Values

MQRC_CHANNEL_STOPPED

public static final int MQRC_CHANNEL_STOPPED
Reason code - channel has been stopped.

See Also:
Constant Field Values

MQRC_CHANNEL_CONV_ERROR

public static final int MQRC_CHANNEL_CONV_ERROR
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.

See Also:
Constant Field Values

MQRC_CHANNEL_ACTIVATED

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

See Also:
Constant Field Values

MQRC_CHANNEL_NOT_ACTIVATED

public static final int MQRC_CHANNEL_NOT_ACTIVATED
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.

See Also:
Constant Field Values

MQRC_UOW_CANCELED

public static final int MQRC_UOW_CANCELED
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.

See Also:
Constant Field Values

MQRC_FUNCTION_NOT_SUPPORTED

public static final int MQRC_FUNCTION_NOT_SUPPORTED
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

See Also:
Constant Field Values

MQRC_INDEX_NOT_PRESENT

public static final int MQRC_INDEX_NOT_PRESENT
Reason code - the specified index is not present.

See Also:
Constant Field Values

MQRC_STRING_ERROR

public static final int MQRC_STRING_ERROR
Reason code - the string parameter is not valid.

See Also:
Constant Field Values

MQRC_ENCODING_NOT_SUPPORTED

public static final int MQRC_ENCODING_NOT_SUPPORTED
Reason code - the Encoding field in the message descriptor MQMD contains a value that is not supported.

See Also:
Constant Field Values

MQRC_STRING_TRUNCATED

public static final int MQRC_STRING_TRUNCATED
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.

See Also:
Constant Field Values

MQRC_INDEX_ERROR

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

See Also:
Constant Field Values

MQRC_FORMAT_NOT_SUPPORTED

public static final int MQRC_FORMAT_NOT_SUPPORTED
Reason code - The format field in the message descriptor MQMD contains a value that is not supported.

See Also:
Constant Field Values

MQRC_CMD_SERVER_NOT_AVAILABLE

public static final int MQRC_CMD_SERVER_NOT_AVAILABLE
Reason code - the command server that processes administration commands is not available.

See Also:
Constant Field Values

MQRC_STRING_LENGTH_ERROR

public static final int MQRC_STRING_LENGTH_ERROR
The StringLength parameter is not valid.

See Also:
Constant Field Values

MQRC_CODED_CHAR_SET_ID_ERROR

public static final int MQRC_CODED_CHAR_SET_ID_ERROR
Reason code - the coded character set ID is not valid.

See Also:
Constant Field Values

MQRC_MSG_TOKEN_ERROR

public static final int MQRC_MSG_TOKEN_ERROR
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.

See Also:
Constant Field Values

MQRC_MISSING_WIH

public static final int MQRC_MISSING_WIH
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 applies to z/OS.

See Also:
Constant Field Values

MQRC_WIH_HEADER

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

See Also:
Constant Field Values

MQRC_RFH_ERROR

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

See Also:
Constant Field Values

MQRC_RFH_STRING_ERROR

public static final int MQRC_RFH_STRING_ERROR
Reason code - the contents of the NameValueString field in the MQRFH structure are not valid.

See Also:
Constant Field Values

MQRC_RFH_COMMAND_ERROR

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

See Also:
Constant Field Values

MQRC_RFH_PARM_ERROR

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

See Also:
Constant Field Values

MQRC_RFH_DUPLICATE_PARM

public static final int MQRC_RFH_DUPLICATE_PARM
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.

See Also:
Constant Field Values

MQRC_RFH_PARM_MISSING

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

See Also:
Constant Field Values

MQRC_CHAR_CONVERSION_ERROR

public static final int MQRC_CHAR_CONVERSION_ERROR
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.

See Also:
Constant Field Values

MQRC_UCS2_CONVERSION_ERROR

public static final int MQRC_UCS2_CONVERSION_ERROR
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.

See Also:
Constant Field Values

MQRC_DB2_NOT_AVAILABLE

public static final int MQRC_DB2_NOT_AVAILABLE
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.

See Also:
Constant Field Values

MQRC_OBJECT_NOT_UNIQUE

public static final int MQRC_OBJECT_NOT_UNIQUE
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.

See Also:
Constant Field Values

MQRC_CONN_TAG_NOT_RELEASED

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

See Also:
Constant Field Values

MQRC_CF_NOT_AVAILABLE

public static final int MQRC_CF_NOT_AVAILABLE
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.

See Also:
Constant Field Values

MQRC_CF_STRUC_IN_USE

public static final int MQRC_CF_STRUC_IN_USE
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.

See Also:
Constant Field Values

MQRC_CF_STRUC_LIST_HDR_IN_USE

public static final int MQRC_CF_STRUC_LIST_HDR_IN_USE
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.

See Also:
Constant Field Values

MQRC_CF_STRUC_AUTH_FAILED

public static final int MQRC_CF_STRUC_AUTH_FAILED
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.

See Also:
Constant Field Values

MQRC_CF_STRUC_ERROR

public static final int MQRC_CF_STRUC_ERROR
Reason code - coupling-facility structure is not valid. z/OS only.

See Also:
Constant Field Values

MQRC_CONN_TAG_NOT_USABLE

public static final int MQRC_CONN_TAG_NOT_USABLE
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.

See Also:
Constant Field Values

MQRC_GLOBAL_UOW_CONFLICT

public static final int MQRC_GLOBAL_UOW_CONFLICT
Reason code - global units of work conflict with each other.

See Also:
Constant Field Values

MQRC_LOCAL_UOW_CONFLICT

public static final int MQRC_LOCAL_UOW_CONFLICT
Reason code - global unit of work conflicts with a local unit of work.

See Also:
Constant Field Values

MQRC_HANDLE_IN_USE_FOR_UOW

public static final int MQRC_HANDLE_IN_USE_FOR_UOW
Reason code - handle is in use for a global unit of work.

See Also:
Constant Field Values

MQRC_UOW_ENLISTMENT_ERROR

public static final int MQRC_UOW_ENLISTMENT_ERROR
Reason code - enlistment in a global unit of work failed.

See Also:
Constant Field Values

MQRC_UOW_MIX_NOT_SUPPORTED

public static final int MQRC_UOW_MIX_NOT_SUPPORTED
Reason code - mixture of unit-of-work calls is not supported.

See Also:
Constant Field Values

MQRC_WXP_ERROR

public static final int MQRC_WXP_ERROR
Reason code - WXP error.

See Also:
Constant Field Values

MQRC_CURRENT_RECORD_ERROR

public static final int MQRC_CURRENT_RECORD_ERROR
Reason code - error in current record.

See Also:
Constant Field Values

MQRC_NEXT_OFFSET_ERROR

public static final int MQRC_NEXT_OFFSET_ERROR
Reason code - error in offset to next record.

See Also:
Constant Field Values

MQRC_NO_RECORD_AVAILABLE

public static final int MQRC_NO_RECORD_AVAILABLE
Reason code - no record is available.

See Also:
Constant Field Values

MQRC_OBJECT_LEVEL_INCOMPATIBLE

public static final int MQRC_OBJECT_LEVEL_INCOMPATIBLE
Reason code - object level is incompatible.

See Also:
Constant Field Values

MQRC_NEXT_RECORD_ERROR

public static final int MQRC_NEXT_RECORD_ERROR
Reason code - error in next record.

See Also:
Constant Field Values

MQRC_BACKOUT_THRESHOLD_REACHED

public static final int MQRC_BACKOUT_THRESHOLD_REACHED
Reason code - backout threshold has been reached.

See Also:
Constant Field Values

MQRC_MSG_NOT_MATCHED

public static final int MQRC_MSG_NOT_MATCHED
Reason code - message is not matched.

See Also:
Constant Field Values

MQRC_JMS_FORMAT_ERROR

public static final int MQRC_JMS_FORMAT_ERROR
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.

See Also:
Constant Field Values

MQRC_PARTICIPANT_NOT_DEFINED

public static final int MQRC_PARTICIPANT_NOT_DEFINED
Reason code - participant has not been defined.

See Also:
Constant Field Values

MQRC_SSL_NOT_ALLOWED

public static final int MQRC_SSL_NOT_ALLOWED
Reason code - SSL is not allowed.

See Also:
Constant Field Values

MQRC_JSSE_ERROR

public static final int MQRC_JSSE_ERROR
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.

See Also:
Constant Field Values

MQRC_SSL_PEER_NAME_MISMATCH

public static final int MQRC_SSL_PEER_NAME_MISMATCH
Reason code - SSL peer name mismatch.

See Also:
Constant Field Values

MQRC_SSL_PEER_NAME_ERROR

public static final int MQRC_SSL_PEER_NAME_ERROR
Reason code - SSL error in peer name.

See Also:
Constant Field Values

MQRC_UNSUPPORTED_CIPHER_SUITE

public static final int MQRC_UNSUPPORTED_CIPHER_SUITE
Reason code - cipher suite is unsupported.

See Also:
Constant Field Values

MQRC_SSL_CERTIFICATE_REVOKED

public static final int MQRC_SSL_CERTIFICATE_REVOKED
Reason code - SSL certificate has been revoked.

See Also:
Constant Field Values

MQRC_SSL_CERT_STORE_ERROR

public static final int MQRC_SSL_CERT_STORE_ERROR
Reason code - SSL CertStore error.

See Also:
Constant Field Values

MQRC_SSL_INITIALIZATION_ERROR

public static final int MQRC_SSL_INITIALIZATION_ERROR
Reason code - SSL initialization error.

See Also:
Constant Field Values

MQRC_CLIENT_EXIT_LOAD_ERROR

public static final int MQRC_CLIENT_EXIT_LOAD_ERROR
Reason code - client exit could not be loaded.

See Also:
Constant Field Values

MQRC_CLIENT_EXIT_ERROR

public static final int MQRC_CLIENT_EXIT_ERROR
Reason code - Error in client exit

See Also:
Constant Field Values

MQRC_SSL_KEY_RESET_ERROR

public static final int MQRC_SSL_KEY_RESET_ERROR
Reason code - SSL key reset error.

See Also:
Constant Field Values

MQRC_CLIENT_CHANNEL_CONFLICT

public static final int MQRC_CLIENT_CHANNEL_CONFLICT
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.

See Also:
Constant Field Values

log

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


completionCode

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


reasonCode

public int reasonCode
WebSphere MQ reason code describing the error.


exceptionSource

public transient java.lang.Object exceptionSource
The object instance that threw the exception.

Constructor Detail

MQException

public MQException(int completionCode,
                   int reasonCode,
                   java.lang.Object source)
Constructs a new MQException object.

Parameters:
completionCode - the WebSphere MQ completion code
reasonCode - the WebSphere MQ reason code
source - the object in which the error occurred
Method Detail

getMessage

public java.lang.String getMessage()
Gets the message detail.

Overrides:
getMessage in class java.lang.Throwable
Returns:
the detail

logExclude

public static void logExclude(java.lang.Integer avoidCode)
Adds an exception type to be kept out of the log.

Parameters:
avoidCode - the exception which is not to be logged.

logInclude

public static void logInclude(java.lang.Integer includeCode)
Allows an exception type to be put in the log.

Parameters:
includeCode - the exception which is to be logged.

(c) Copyright IBM Corp. 2005. All Rights Reserved.