Adding custom messages

You can store custom status codes and their associated messages in the syserrors system catalog table.

About this task

To add a custom message:

Procedure

  1. Determine the SQLSTATE code for the message you want to add.
  2. Insert a row into the syserrors system catalog table for the new message.