home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a063 / 7.img / INCLUDE / SYBERROR.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-24  |  1.7 KB  |  51 lines

  1. /*
  2. **    syberror.h    34.1    5/10/88
  3. **
  4. **    ERROR.H
  5. **
  6. **      The major component numbers for error handling are defined here.
  7. **    So are the return codes from exception handlers and ex_raise().
  8. **
  9. **    Requires:
  10. **              none
  11. **
  12. **    History:
  13. **    20 Jun 85 (wood) - added more support for ex. handlers and ex_raise()
  14. **    28 Jan 86 (kyle) - added EX_VAR, indicates var used in backout code 
  15. **    06 May 86 (kyle) - Rearranged severity levels 
  16. **    09 Sep 86 (jeffs)- Added Buildmaker 
  17. **    06 Oct 86 (andy) - Chopped out all server-specific definitions.
  18. **
  19. */
  20.  
  21. /* Major Component of error code (This is not currently used) */
  22. #define EXCEPTION    1    /* an error within the exception mechanism */
  23. #define EXSIGNAL    2
  24. #define    EXSCREENIO    3
  25. #define    EXDBLIB        4
  26. #define EXFORMS        5
  27. #define EXCLIPBOARD    6
  28. #define EXLOOKUP    7
  29.  
  30. /* The severity levels are defined here */
  31. #define    EXINFO        1    /* informational, non-error */
  32. #define    EXUSER        2    /* user error */
  33. #define    EXNONFATAL    3    /* non-fatal error */
  34. #define EXCONVERSION    4    /* Error in DB-LIBRARY data conversion. */
  35. #define EXSERVER    5    /* The Server has returned an error flag. */
  36. #define EXTIME        6    /* We have exceeded our timeout period while
  37.                  * waiting for a response from the Server -
  38.                  * the DBPROCESS is still alive.
  39.                  */
  40. #define EXPROGRAM    7    /* coding error in user program */
  41. #define    EXRESOURCE    8    /* running out of resources - the DBPROCESS
  42.                  * may be dead.
  43.                  */
  44. #define    EXCOMM        9    /* failure in communication with Server -
  45.                  * the DBPROCESS is dead.
  46.                  */
  47. #define    EXFATAL        10    /* fatal error - the DBPROCESS is dead. */
  48. #define    EXCONSISTENCY    11    /* internal software error  - notify Sybase
  49.                  * Technical Supprt.
  50.                  */
  51.