Handling program errors
Your application may encounter errors associated with its MQI calls either when it makes a call or when its message is delivered to its final destination:
- Whenever possible, the queue manager returns any errors as soon as an MQI call is made. These are locally determined errors.
- When sending messages to a remote queue, errors may not be apparent when the MQI call is made. In this case, the queue manager that identifies the errors reports them by sending another message to the originating program. These are remotely determined errors.
This chapter gives advice on how to handle both types of error, under these headings: