Generating a User-defined Error Message

You can choose to generate a user-defined error message from the trigger generation parameters box.

  1. Select Tools > Rebuild Objects > Rebuild Triggers.

    The Rebuild Triggers dialog box is displayed.

  2. Click the Error Messages tab, and select the User-defined radio button.
  3. Type the name of the table that contains the error message in the Message Table Name box.
  4. Type the name of the column that contains the error number in the Message Number box.
  5. Type the name of the column that contains the error message text in the Message Text column.

    Below is an example of the details for a table called ERR_MSG.



  6. Click the General tab and select the mode and triggers to create.
  7. Click the Selection tab and select the tables for which you want to create triggers.

    For more information on rebuilding triggers, see section Rebuilding Triggers.

  8. Click OK.

    The trigger rebuilding process is shown in the Output window.

    Select Database > Generate Database to open the Database Generation window.

  9. Select generation parameters as required.
  10. Click OK.

    For information on selecting trigger generation parameters, see section Generating Triggers and Procedures.