home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dokpr1.zip / exc_num.h < prev    next >
C/C++ Source or Header  |  1995-09-29  |  7KB  |  210 lines

  1. /**************************************************************************
  2.  *                                                                        *
  3.  *                                                                        *
  4.  *          This code is copyright (c) 1994                               *
  5.  *                     Athena Design, Inc.                                *
  6.  *                     and David Pollak                                   *
  7.  *                                                                        *
  8.  *                ALL RIGHTS RESERVED                                     *
  9.  *                                                                        *
  10.  *                                                                        *
  11.  *                                                                        *
  12.  *                                                                        *
  13.  *                                                                        *
  14.  **************************************************************************/
  15.  
  16. #ifndef _MH_exception_num
  17.  
  18. #define _MH_exception_num
  19.  
  20. #define noError 0
  21.  
  22. // these are the various parse errors
  23. #define parseType1Error 1
  24. #define parseType2Error 2
  25. #define parseNotAFormulaError 3
  26. #define parseNoMatchingParenError 4
  27. #define parseNoMatchingSqBraceError 5
  28. #define parseNoMatchingCurleBraceError 6
  29. #define parseBadCommaError 7
  30. #define parseNoMatchingCurBraceError 8
  31. #define parseBadSemiError 9
  32. #define parseUnknownError 10
  33. #define parseBadElementInArrayError 11
  34.  
  35. // and some execution errors
  36. #define stackUnderflowError 12
  37. #define feedNotFoundError 13
  38. #define divideByZeroError 14
  39. #define rateNotCalcError 15
  40. #define irrNotCalcError 16
  41. #define notAddressError 17
  42. #define NAError 18
  43. #define needCellRefError 19
  44. #define sameError 20
  45.  
  46. // another parse error
  47. #define wrongNumParamsError 21
  48.  
  49. // function error
  50. #define notFoundError 22
  51. #define matrixSizeError 23
  52. #define singularMatrixError 24
  53. #define depreciationError 25
  54. #define chooseError 26
  55. #define indexError 27
  56. #define elementError 28
  57. #define lookupError 29
  58. #define generalError 30
  59.  
  60. // if the operation cannot be performed because the layer is protected
  61. #define protectedError 31
  62. #define readOnlyLayerError 32
  63. #define readOnlyModelError 33
  64. #define circularRefError 34
  65.  
  66. // pasteboard errors
  67. #define incompatablePasteBoardError 35
  68. #define needsMesaDataPasteBoardError 36
  69. #define badDataShapePasteBoardError 37
  70. #define badDataTypePasteBoardError 38
  71. #define moveOnlyOnSameSheetPasteBoardError 39
  72. #define numberTooLargeError 40
  73.  
  74. // addin and label errors
  75. // 94-09-24 dpp
  76. #define labelNotFoundError 41
  77. #define addInNotFoundError 42
  78.  
  79. // bad input type error
  80. #define badInputTypeError 43
  81.  
  82. // can't do this to a non-sheet layer
  83. #define nonSheetTypeError 44
  84.  
  85. // a date or time format string is expected
  86. #define notDateTimeError 45
  87.  
  88. // the shape cannot be done by the operation - ie sorting a discontiguous range
  89. #define badShapeError 46
  90.  
  91. // the file is not a bitmap
  92. #define notBitmapError 47
  93.  
  94. // the label was truncated due to restrictions on the output file format
  95. #define    labelTruncatedError                    48
  96.  
  97. // a multiple-range entry was saved as a single range due to output format
  98. #define    rangeMultipleSavedAsSingleError        49
  99.  
  100. // cell reference out of the boundaries supported by output format
  101. #define    cellBeyondSheetLimitsError            50
  102.  
  103. // the storage procedure was interupted by an AddIn
  104. #define saveBlockedByAddInError                51
  105.  
  106. // the storage procedure was interupted by an AddIn
  107. #define entryBlockedByAddInError            52
  108.  
  109. // find-and-replace showed a find that returned the same cell that
  110. // it was just replaced in
  111. #define findAndReplaceWraparoundError        53
  112.  
  113. // tried to goto a hidden cell
  114. #define gotoAHiddenCellError                54
  115.  
  116. // create a dde link with an invalid-cell as target
  117. #define    invalidTargetError                    55
  118.  
  119. // tried to open too many windows
  120. #define openedTooManyWindowsError           56
  121.  
  122. #define    findStringNotFoundError                57
  123. #define    dontSupportExcel5Error                58
  124.  
  125. #define noPrintersInstalledError            59
  126.  
  127. // must be updated to reflect the total number of errors supported by
  128. // the system
  129. #define MAXERRORNUMBER 59
  130.  
  131. // file system errors
  132. #define fileNotFoundError 200
  133. #define pathNotFoundError 201
  134. #define tooManyOpenFilesError 202
  135. #define fileAccessDeniedError 203
  136. #define invalidFileAccessError 204
  137. #define notDosDiskError 205
  138. #define fileSharingViolationError 206
  139. #define fileSharingBufferError 207
  140. #define cannotMakeFileError 208
  141. #define fileInvalidParameterError 209
  142. #define deviceInUseFileError 210
  143. #define driveLockedError 211
  144. #define openFailedError 212
  145. #define diskFullError 213
  146. #define filenameExceededRangeError 214
  147. #define pipeBusyError 215
  148. #define invalidFileHandleError 216
  149. #define writeProtectError 217
  150. #define writeFaultError 218
  151. #define lockViolationFileError 219
  152. #define brokenPipeError 220
  153. #define moreDataFileError 221
  154. #define unknownFileTypeError 222
  155. #define unsupportedFileTypeError 223
  156. #define invalidPasswordError    224
  157. #define mismatchChangePasswordError 225
  158. #define undefinedError 226
  159. #define noFM3File        227        // no .FM3 file found for importing
  160. #define ddeOpenFailedError 228    // dde tried to open a file which Mesa couldn't find
  161. // a series of REXX errors
  162. #define progUnreadableRexxError         403
  163. #define progInteruptedRexxError         404
  164. #define machineResExhaustedRexxError     405
  165. #define unmatchedQuoteRexxError            406
  166. #define whenExpectedRexxError            407
  167. #define unexpectedThenRexxError            408
  168. #define unexpectedWhenRexxError            409
  169. #define unexpectedEndRexxError            410
  170. #define controlStackFullRexxError        411
  171. #define invalidCharRexxError            413
  172. #define incompleteDoRexxError            414
  173. #define invalidHexxRexxError            415
  174. #define labelNotFoundRexxError            416
  175. #define unexpectedProcRexxError            417
  176. #define thenExpectedRexxError            418
  177. #define stringExpectedRexxError            419
  178. #define symbolExpectedRexxError            420
  179. #define invalidDataRexxError            421
  180. #define invalidCharStrRexxError            423
  181. #define invalidTraceRexxError            424
  182. #define invalidSubkeyRexxError            425
  183. #define invalidNumberRexxError            426
  184. #define invalidDoRexxError                427
  185. #define invalidLeaveRexxError            428
  186. #define envNameTooLongRexxError            429
  187. #define nameTooLongRexxError            430
  188. #define badNameRexxError                431
  189. #define invalidResultRexxError            433
  190. #define badLogicalValRexxError            434
  191. #define invalidExpRexxError                435
  192. #define unmatchedParenRexxError            436
  193. #define unexpectedParenRexxError        437
  194. #define invalidTemplateRexxError        438
  195. #define stackOverflowRexxError            439
  196. #define incorrectCallRexxError            440
  197. #define badArithmaticRexxError            441
  198. #define overflowRexxError                442
  199. #define routineNotFoundRexxError        443
  200. #define noReturnRexxError                444
  201. #define noDataSpecRexxError                445
  202. #define invalidVarRexxError                446
  203. #define unexpectedLabelRexxError        447
  204. #define systemServFailureRexxError        448
  205. #define interpretRexxError                449
  206.  
  207.  
  208. // ifndef _MH_exception_num
  209. #endif
  210.