You can create your own error numbers and messages based on Sybase error numbers. For more information, see “sp_addmessage” in the most recent version of the Adaptive Server guide Reference Manual: Procedures.