You can create your own error numbers and messages based on Sybase error numbers. For more information, refer to “sp_addmessage” in the Adaptive Server Reference Manual.