A negative action notification indicates that handling the request has failed. All negative action notifications include as additional data an error message that describes the nature of the problem. This can be used in error messages. The MQSeries message length can be used to derive the length of the string.
There are currently no negative action notifications of type "WCMD". For _WE_ type of errors the report code is currently always "0000000000", followed by a generic error message (both might change in the future). For WEMQ type of errors a few specific codes have been defined. See the table below.
class |
code |
type of additional data |
report meaning |
_WE_ |
0000000000 |
error message |
Generic error message |
_WE_ |
0000000001 |
error message |
Request has been cancelled. Normally this notification will be returned for all outstanding requests when WindowsEnabler has been disconnected. |
WEMQ |
0000000000 |
error message |
Generic error message |
WEMQ |
0000000001 |
error message |
Request message is not of type MQFMT_STRING |
WEMQ |
0000000002 |
error message |
Request message could not be converted to Unicode |
WEMQ |
0000000003 |
error message |
Invalid command line (syntax error). The error message gives detailed information. |