home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff284.lzh / Dme / src / rexx / errors.i < prev    next >
Text File  |  1989-11-27  |  3KB  |  64 lines

  1. * ========================     errors.i     =============================
  2. * Definitions for Rexx error codes
  3.  
  4. ERRC_MSG    EQU   0                 ; error code offset
  5. ERR10_001   EQU   (ERRC_MSG+1)      ; Program not found
  6. ERR10_002   EQU   (ERRC_MSG+2)      ; execution halted
  7. ERR10_003   EQU   (ERRC_MSG+3)      ; no memory available
  8. ERR10_004   EQU   (ERRC_MSG+4)      ; invalid character in program
  9. ERR10_005   EQU   (ERRC_MSG+5)      ; unmatched quote
  10. ERR10_006   EQU   (ERRC_MSG+6)      ; unterminated comment
  11. ERR10_007   EQU   (ERRC_MSG+7)      ; clause too long
  12. ERR10_008   EQU   (ERRC_MSG+8)      ; unrecognized token
  13. ERR10_009   EQU   (ERRC_MSG+9)      ; symbol or string too long
  14.  
  15. ERR10_010   EQU   (ERRC_MSG+10)     ; invalid message packet
  16. ERR10_011   EQU   (ERRC_MSG+11)     ; command string error
  17. ERR10_012   EQU   (ERRC_MSG+12)     ; error return from function
  18. ERR10_013   EQU   (ERRC_MSG+13)     ; host environment not found
  19. ERR10_014   EQU   (ERRC_MSG+14)     ; required library not available
  20. ERR10_015   EQU   (ERRC_MSG+15)     ; function not found
  21. ERR10_016   EQU   (ERRC_MSG+16)     ; function did not return value
  22. ERR10_017   EQU   (ERRC_MSG+17)     ; wrong number of arguments
  23. ERR10_018   EQU   (ERRC_MSG+18)     ; invalid argument to function
  24. ERR10_019   EQU   (ERRC_MSG+19)     ; invalid PROCEDURE instruction
  25.  
  26. ERR10_020   EQU   (ERRC_MSG+20)     ; unexpected THEN/ELSE
  27. ERR10_021   EQU   (ERRC_MSG+21)     ; unexpected WHEN/OTHERWISE
  28. ERR10_022   EQU   (ERRC_MSG+22)     ; unexpected BREAK, LEAVE or ITERATE
  29. ERR10_023   EQU   (ERRC_MSG+23)     ; invalid statement in SELECT
  30. ERR10_024   EQU   (ERRC_MSG+24)     ; missing or multiple THEN clauses
  31. ERR10_025   EQU   (ERRC_MSG+25)     ; missing OTHERWISE
  32. ERR10_026   EQU   (ERRC_MSG+26)     ; missing or unexpected END
  33. ERR10_027   EQU   (ERRC_MSG+27)     ; symbol mismatch on END/LEAVE/ITERATE
  34. ERR10_028   EQU   (ERRC_MSG+28)     ; invalid 'DO' syntax
  35. ERR10_029   EQU   (ERRC_MSG+29)     ; incomplete DO/IF/SELECT
  36.  
  37. ERR10_030   EQU   (ERRC_MSG+30)     ; label not found
  38. ERR10_031   EQU   (ERRC_MSG+31)     ; symbol expected
  39. ERR10_032   EQU   (ERRC_MSG+32)     ; string or symbol expected
  40. ERR10_033   EQU   (ERRC_MSG+33)     ; invalid sub-keyword
  41. ERR10_034   EQU   (ERRC_MSG+34)     ; required keyword missing
  42. ERR10_035   EQU   (ERRC_MSG+35)     ; extraneous characters in clause
  43. ERR10_036   EQU   (ERRC_MSG+36)     ; sub-keyword conflict
  44. ERR10_037   EQU   (ERRC_MSG+37)     ; invalid template
  45. ERR10_038   EQU   (ERRC_MSG+38)     ; invalid TRACE request
  46. ERR10_039   EQU   (ERRC_MSG+39)     ; uninitialized variable
  47.  
  48. ERR10_040   EQU   (ERRC_MSG+40)     ; invalid variable name
  49. ERR10_041   EQU   (ERRC_MSG+41)     ; invalid expression
  50. ERR10_042   EQU   (ERRC_MSG+42)     ; unbalanced parentheses
  51. ERR10_043   EQU   (ERRC_MSG+43)     ; nesting level exceeded
  52. ERR10_044   EQU   (ERRC_MSG+44)     ; invalid expression result
  53. ERR10_045   EQU   (ERRC_MSG+45)     ; expression required
  54. ERR10_046   EQU   (ERRC_MSG+46)     ; boolean value not 0 or 1
  55. ERR10_047   EQU   (ERRC_MSG+47)     ; arithmetic conversion error
  56. ERR10_048   EQU   (ERRC_MSG+48)     ; invalid operand
  57.  
  58. * Return Codes for general use ...
  59. RC_FAIL     EQU   -1                ; something's wrong
  60. RC_OK       EQU   0                 ; success
  61. RC_WARN     EQU   5                 ; A warning only
  62. RC_ERROR    EQU   10                ; Something wrong
  63. RC_FATAL    EQU   20                ; Complete or severe failure
  64.