Mac OS 9
MacErrors.h
Go to the documentation of this file.
1 
19 #ifndef __MACERRORS__
20 #define __MACERRORS__
21 
22 #ifndef __CONDITIONALMACROS__
23 #include <ConditionalMacros.h>
24 #endif
25 
26 #if PRAGMA_ONCE
27 #pragma once
28 #endif
29 
30 #ifdef __cplusplus
31 extern "C"
32 {
33 #endif
34 
35 #if PRAGMA_IMPORT
36 #pragma import on
37 #endif
38 
39 #if PRAGMA_STRUCT_ALIGN
40 #pragma options align = mac68k
41 #elif PRAGMA_STRUCT_PACKPUSH
42 #pragma pack(push, 2)
43 #elif PRAGMA_STRUCT_PACK
44 #pragma pack(2)
45 #endif
46 
47  enum
48  {
49  paramErr = -50, /*error in user parameter list*/
50  noHardwareErr = -200, /*Sound Manager Error Returns*/
51  notEnoughHardwareErr = -201, /*Sound Manager Error Returns*/
52  userCanceledErr = -128,
53  qErr = -1, /*queue element not found during deletion*/
54  vTypErr = -2, /*invalid queue element*/
55  corErr = -3, /*core routine number out of range*/
56  unimpErr = -4, /*unimplemented core routine*/
57  SlpTypeErr = -5, /*invalid queue element*/
58  seNoDB = -8, /*no debugger installed to handle debugger command*/
59  controlErr = -17, /*I/O System Errors*/
60  statusErr = -18, /*I/O System Errors*/
61  readErr = -19, /*I/O System Errors*/
62  writErr = -20, /*I/O System Errors*/
63  badUnitErr = -21, /*I/O System Errors*/
64  unitEmptyErr = -22, /*I/O System Errors*/
65  openErr = -23, /*I/O System Errors*/
66  closErr = -24, /*I/O System Errors*/
67  dRemovErr = -25, /*tried to remove an open driver*/
68  dInstErr = -26 /*DrvrInstall couldn't find driver in resources*/
69  };
70 
71  enum
72  {
73  abortErr = -27, /*IO call aborted by KillIO*/
74  iIOAbortErr = -27, /*IO abort error (Printing Manager)*/
75  notOpenErr = -28, /*Couldn't rd/wr/ctl/sts cause driver not opened*/
76  unitTblFullErr = -29, /*unit table has no more entries*/
77  dceExtErr = -30, /*dce extension error*/
78  slotNumErr = -360, /*invalid slot # error*/
79  gcrOnMFMErr = -400, /*gcr format on high density media error*/
80  dirFulErr = -33, /*Directory full*/
81  dskFulErr = -34, /*disk full*/
82  nsvErr = -35, /*no such volume*/
83  ioErr = -36, /*I/O error (bummers)*/
84  bdNamErr = -37, /*there may be no bad names in the final system!*/
85  fnOpnErr = -38, /*File not open*/
86  eofErr = -39, /*End of file*/
87  posErr = -40, /*tried to position to before start of file (r/w)*/
88  mFulErr = -41, /*memory full (open) or file won't fit (load)*/
89  tmfoErr = -42, /*too many files open*/
90  fnfErr = -43, /*File not found*/
91  wPrErr = -44, /*diskette is write protected.*/
92  fLckdErr = -45 /*file is locked*/
93  };
94 
95  enum
96  {
97  vLckdErr = -46, /*volume is locked*/
98  fBsyErr = -47, /*File is busy (delete)*/
99  dupFNErr = -48, /*duplicate filename (rename)*/
100  opWrErr = -49, /*file already open with with write permission*/
101  rfNumErr = -51, /*refnum error*/
102  gfpErr = -52, /*get file position error*/
103  volOffLinErr = -53, /*volume not on line error (was Ejected)*/
104  permErr = -54, /*permissions error (on file open)*/
105  volOnLinErr = -55, /*drive volume already on-line at MountVol*/
106  nsDrvErr = -56, /*no such drive (tried to mount a bad drive num)*/
107  noMacDskErr = -57, /*not a mac diskette (sig bytes are wrong)*/
108  extFSErr = -58, /*volume in question belongs to an external fs*/
109  fsRnErr = -59, /*file system internal error:during rename the old entry was
110  deleted but could not be restored.*/
111  badMDBErr = -60, /*bad master directory block*/
112  wrPermErr = -61, /*write permissions error*/
113  dirNFErr = -120, /*Directory not found*/
114  tmwdoErr = -121, /*No free WDCB available*/
115  badMovErr = -122, /*Move into offspring error*/
116  wrgVolTypErr =
117  -123, /*Wrong volume type error [operation not supported for MFS]*/
118  volGoneErr = -124 /*Server volume has been disconnected.*/
119  };
120 
121  enum
122  {
123  fidNotFound = -1300, /*no file thread exists.*/
124  fidExists = -1301, /*file id already exists*/
125  notAFileErr = -1302, /*directory specified*/
126  diffVolErr = -1303, /*files on different volumes*/
127  catChangedErr = -1304, /*the catalog has been modified*/
128  desktopDamagedErr = -1305, /*desktop database files are corrupted*/
129  sameFileErr = -1306, /*can't exchange a file with itself*/
130  badFidErr =
131  -1307, /*file id is dangling or doesn't match with the file number*/
132  notARemountErr =
133  -1308, /*when _Mount allows only remounts and doesn't get one*/
134  fileBoundsErr = -1309, /*file's EOF, offset, mark or size is too big*/
135  fsDataTooBigErr = -1310, /*file or volume is too big for system*/
136  volVMBusyErr = -1311, /*can't eject because volume is in use by VM*/
137  badFCBErr = -1327, /*FCBRecPtr is not valid*/
138  errFSUnknownCall = -1400, /* selector is not recognized by this filesystem */
139  errFSBadFSRef = -1401, /* FSRef parameter is bad */
140  errFSBadForkName = -1402, /* Fork name parameter is bad */
141  errFSBadBuffer = -1403, /* A buffer parameter was bad */
142  errFSBadForkRef = -1404, /* A ForkRefNum parameter was bad */
143  errFSBadInfoBitmap = -1405, /* A CatalogInfoBitmap or VolumeInfoBitmap has
144  reserved or invalid bits set */
145  errFSMissingCatInfo = -1406, /* A CatalogInfo parameter was NULL */
146  errFSNotAFolder = -1407, /* Expected a folder, got a file */
147  errFSForkNotFound = -1409, /* Named fork does not exist */
148  errFSNameTooLong = -1410, /* File/fork name is too long to create/rename */
149  errFSMissingName = -1411, /* A Unicode name parameter was NULL or nameLength
150  parameter was zero */
151  errFSBadPosMode = -1412, /* Newline bits set in positionMode */
152  errFSBadAllocFlags = -1413, /* Invalid bits set in allocationFlags */
153  errFSNoMoreItems = -1417, /* Iteration ran out of items to return */
154  errFSBadItemCount = -1418, /* maximumItems was zero */
155  errFSBadSearchParams =
156  -1419, /* Something wrong with CatalogSearch searchParams */
157  errFSRefsDifferent =
158  -1420, /* FSCompareFSRefs; refs are for different objects */
159  errFSForkExists = -1421, /* Named fork already exists. */
160  errFSBadIteratorFlags = -1422, /* Flags passed to FSOpenIterator are bad */
161  errFSIteratorNotFound = -1423, /* Passed FSIterator is not an open iterator */
162  errFSIteratorNotSupported = -1424, /* The iterator's flags or container are
163  not supported by this call */
164  envNotPresent = -5500, /*returned by glue.*/
165  envBadVers = -5501, /*Version non-positive*/
166  envVersTooBig = -5502, /*Version bigger than call can handle*/
167  fontDecError = -64, /*error during font declaration*/
168  fontNotDeclared = -65, /*font not declared*/
169  fontSubErr = -66, /*font substitution occurred*/
170  fontNotOutlineErr =
171  -32615, /*bitmap font passed to routine that does outlines only*/
172  firstDskErr = -84, /*I/O System Errors*/
173  lastDskErr = -64, /*I/O System Errors*/
174  noDriveErr = -64, /*drive not installed*/
175  offLinErr = -65, /*r/w requested for an off-line drive*/
176  noNybErr = -66 /*couldn't find 5 nybbles in 200 tries*/
177  };
178 
179  enum
180  {
181  noAdrMkErr = -67, /*couldn't find valid addr mark*/
182  dataVerErr = -68, /*read verify compare failed*/
183  badCksmErr = -69, /*addr mark checksum didn't check*/
184  badBtSlpErr = -70, /*bad addr mark bit slip nibbles*/
185  noDtaMkErr = -71, /*couldn't find a data mark header*/
186  badDCksum = -72, /*bad data mark checksum*/
187  badDBtSlp = -73, /*bad data mark bit slip nibbles*/
188  wrUnderrun = -74, /*write underrun occurred*/
189  cantStepErr = -75, /*step handshake failed*/
190  tk0BadErr = -76, /*track 0 detect doesn't change*/
191  initIWMErr = -77, /*unable to initialize IWM*/
192  twoSideErr = -78, /*tried to read 2nd side on a 1-sided drive*/
193  spdAdjErr = -79, /*unable to correctly adjust disk speed*/
194  seekErr = -80, /*track number wrong on address mark*/
195  sectNFErr = -81, /*sector number never found on a track*/
196  fmt1Err = -82, /*can't find sector 0 after track format*/
197  fmt2Err = -83, /*can't get enough sync*/
198  verErr = -84, /*track failed to verify*/
199  clkRdErr = -85, /*unable to read same clock value twice*/
200  clkWrErr = -86, /*time written did not verify*/
201  prWrErr = -87, /*parameter ram written didn't read-verify*/
202  prInitErr = -88, /*InitUtil found the parameter ram uninitialized*/
203  rcvrErr = -89, /*SCC receiver error (framing; parity; OR)*/
204  breakRecd = -90 /*Break received (SCC)*/
205  };
206 
207  enum
208  {
209  /*Scrap Manager errors*/
210  noScrapErr = -100, /*No scrap exists error*/
211  noTypeErr = -102 /*No object of that type in scrap*/
212  };
213 
214  enum
215  {
216  /* ENET error codes */
217  eLenErr = -92, /*Length error ddpLenErr*/
218  eMultiErr = -91 /*Multicast address error ddpSktErr*/
219  };
220 
221  enum
222  {
223  ddpSktErr = -91, /*error in soket number*/
224  ddpLenErr = -92, /*data length too big*/
225  noBridgeErr = -93, /*no network bridge for non-local send*/
226  lapProtErr = -94, /*error in attaching/detaching protocol*/
227  excessCollsns = -95, /*excessive collisions on write*/
228  portNotPwr = -96, /*serial port not currently powered*/
229  portInUse = -97, /*driver Open error code (port is in use)*/
230  portNotCf = -98 /*driver Open error code (parameter RAM not configured for
231  this connection)*/
232  };
233 
234  enum
235  {
236  /* Memory Manager errors*/
237  memROZWarn = -99, /*soft error in ROZ*/
238  memROZError = -99, /*hard error in ROZ*/
239  memROZErr = -99, /*hard error in ROZ*/
240  memFullErr = -108, /*Not enough room in heap zone*/
241  nilHandleErr = -109, /*Master Pointer was NIL in HandleZone or other*/
242  memWZErr = -111, /*WhichZone failed (applied to free block)*/
243  memPurErr = -112, /*trying to purge a locked or non-purgeable block*/
244  memAdrErr = -110, /*address was odd; or out of range*/
245  memAZErr = -113, /*Address in zone check failed*/
246  memPCErr = -114, /*Pointer Check failed*/
247  memBCErr = -115, /*Block Check failed*/
248  memSCErr = -116, /*Size Check failed*/
249  memLockedErr = -117 /*trying to move a locked block (MoveHHi)*/
250  };
251 
252  enum
253  {
254  /* Printing Errors */
255  iMemFullErr = -108,
256  iIOAbort = -27
257  };
258 
259  enum
260  {
261  resourceInMemory = -188, /*Resource already in memory*/
262  writingPastEnd = -189, /*Writing past end of file*/
263  inputOutOfBounds = -190, /*Offset of Count out of bounds*/
264  resNotFound = -192, /*Resource not found*/
265  resFNotFound = -193, /*Resource file not found*/
266  addResFailed = -194, /*AddResource failed*/
267  addRefFailed = -195, /*AddReference failed*/
268  rmvResFailed = -196, /*RmveResource failed*/
269  rmvRefFailed = -197, /*RmveReference failed*/
270  resAttrErr = -198, /*attribute inconsistent with operation*/
271  mapReadErr = -199, /*map inconsistent with operation*/
272  CantDecompress = -186, /*resource bent ("the bends") - can't decompress a
273  compressed resource*/
274  badExtResource = -185, /*extended resource has a bad format.*/
275  noMemForPictPlaybackErr = -145,
276  rgnOverflowErr = -147,
277  rgnTooBigError = -147,
278  pixMapTooDeepErr = -148,
279  insufficientStackErr = -149,
280  nsStackErr = -149
281  };
282 
283  enum
284  {
285  evtNotEnb = 1 /*event not enabled at PostEvent*/
286  };
287 
288  /* OffScreen QuickDraw Errors */
289  enum
290  {
291  cMatchErr = -150, /*Color2Index failed to find an index*/
292  cTempMemErr = -151, /*failed to allocate memory for temporary structures*/
293  cNoMemErr = -152, /*failed to allocate memory for structure*/
294  cRangeErr = -153, /*range error on colorTable request*/
295  cProtectErr = -154, /*colorTable entry protection violation*/
296  cDevErr = -155, /*invalid type of graphics device*/
297  cResErr = -156, /*invalid resolution for MakeITable*/
298  cDepthErr = -157, /*invalid pixel depth */
299  rgnTooBigErr = -500,
300  updPixMemErr = -125, /*insufficient memory to update a pixmap*/
301  pictInfoVersionErr = -11000, /*wrong version of the PictInfo structure*/
302  pictInfoIDErr =
303  -11001, /*the internal consistancy check for the PictInfoID is wrong*/
304  pictInfoVerbErr = -11002, /*the passed verb was invalid*/
305  cantLoadPickMethodErr = -11003, /*unable to load the custom pick proc*/
306  colorsRequestedErr = -11004, /*the number of colors requested was illegal*/
307  pictureDataErr = -11005 /*the picture data was invalid*/
308  };
309 
310  /* ColorSync Result codes */
311  enum
312  {
313  /* General Errors */
314  cmProfileError = -170,
315  cmMethodError = -171,
316  cmMethodNotFound = -175, /* CMM not present */
317  cmProfileNotFound = -176, /* Responder error */
318  cmProfilesIdentical = -177, /* Profiles the same */
319  cmCantConcatenateError = -178, /* Profile can't be concatenated */
320  cmCantXYZ = -179, /* CMM cant handle XYZ space */
321  cmCantDeleteProfile = -180, /* Responder error */
322  cmUnsupportedDataType = -181, /* Responder error */
323  cmNoCurrentProfile = -182 /* Responder error */
324  };
325 
326  enum
327  {
328  /*Sound Manager errors*/
329  noHardware = noHardwareErr, /*obsolete spelling*/
330  notEnoughHardware = notEnoughHardwareErr, /*obsolete spelling*/
331  queueFull = -203, /*Sound Manager Error Returns*/
332  resProblem = -204, /*Sound Manager Error Returns*/
333  badChannel = -205, /*Sound Manager Error Returns*/
334  badFormat = -206, /*Sound Manager Error Returns*/
335  notEnoughBufferSpace = -207, /*could not allocate enough memory*/
336  badFileFormat = -208, /*was not type AIFF or was of bad format,corrupt*/
337  channelBusy = -209, /*the Channel is being used for a PFD already*/
338  buffersTooSmall = -210, /*can not operate in the memory allowed*/
339  channelNotBusy = -211,
340  noMoreRealTime = -212, /*not enough CPU cycles left to add another task*/
341  siVBRCompressionNotSupported =
342  -213, /*vbr audio compression not supported for this operation*/
343  siNoSoundInHardware = -220, /*no Sound Input hardware*/
344  siBadSoundInDevice = -221, /*invalid index passed to SoundInGetIndexedDevice*/
345  siNoBufferSpecified =
346  -222, /*returned by synchronous SPBRecord if nil buffer passed*/
347  siInvalidCompression = -223, /*invalid compression type*/
348  siHardDriveTooSlow = -224, /*hard drive too slow to record to disk*/
349  siInvalidSampleRate = -225, /*invalid sample rate*/
350  siInvalidSampleSize = -226, /*invalid sample size*/
351  siDeviceBusyErr = -227, /*input device already in use*/
352  siBadDeviceName = -228, /*input device could not be opened*/
353  siBadRefNum = -229, /*invalid input device reference number*/
354  siInputDeviceErr = -230, /*input device hardware failure*/
355  siUnknownInfoType = -231, /*invalid info type selector (returned by driver)*/
356  siUnknownQuality = -232 /*invalid quality selector (returned by driver)*/
357  };
358 
359  /*Speech Manager errors*/
360  enum
361  {
362  noSynthFound = -240,
363  synthOpenFailed = -241,
364  synthNotReady = -242,
365  bufTooSmall = -243,
366  voiceNotFound = -244,
367  incompatibleVoice = -245,
368  badDictFormat = -246,
369  badInputText = -247
370  };
371 
372  /* Midi Manager Errors: */
373  enum
374  {
375  midiNoClientErr = -250, /*no client with that ID found*/
376  midiNoPortErr = -251, /*no port with that ID found*/
377  midiTooManyPortsErr = -252, /*too many ports already installed in the system*/
378  midiTooManyConsErr = -253, /*too many connections made*/
379  midiVConnectErr = -254, /*pending virtual connection created*/
380  midiVConnectMade = -255, /*pending virtual connection resolved*/
381  midiVConnectRmvd = -256, /*pending virtual connection removed*/
382  midiNoConErr = -257, /*no connection exists between specified ports*/
383  midiWriteErr = -258, /*MIDIWritePacket couldn't write to all connected ports*/
384  midiNameLenErr = -259, /*name supplied is longer than 31 characters*/
385  midiDupIDErr = -260, /*duplicate client ID*/
386  midiInvalidCmdErr = -261 /*command not supported for port type*/
387  };
388 
389  enum
390  {
391  nmTypErr = -299 /*Notification Manager:wrong queue type*/
392  };
393 
394  enum
395  {
396  siInitSDTblErr = 1, /*slot int dispatch table could not be initialized.*/
397  siInitVBLQsErr = 2, /*VBLqueues for all slots could not be initialized.*/
398  siInitSPTblErr = 3, /*slot priority table could not be initialized.*/
399  sdmJTInitErr = 10, /*SDM Jump Table could not be initialized.*/
400  sdmInitErr = 11, /*SDM could not be initialized.*/
401  sdmSRTInitErr = 12, /*Slot Resource Table could not be initialized.*/
402  sdmPRAMInitErr = 13, /*Slot PRAM could not be initialized.*/
403  sdmPriInitErr = 14 /*Cards could not be initialized.*/
404  };
405 
406  enum
407  {
408  smSDMInitErr = -290, /*Error; SDM could not be initialized.*/
409  smSRTInitErr = -291, /*Error; Slot Resource Table could not be initialized.*/
410  smPRAMInitErr = -292, /*Error; Slot Resource Table could not be initialized.*/
411  smPriInitErr = -293, /*Error; Cards could not be initialized.*/
412  smEmptySlot = -300, /*No card in slot*/
413  smCRCFail = -301, /*CRC check failed for declaration data*/
414  smFormatErr = -302, /*FHeader Format is not Apple's*/
415  smRevisionErr = -303, /*Wrong revison level*/
416  smNoDir = -304, /*Directory offset is Nil*/
417  smDisabledSlot = -305, /*This slot is disabled (-305 use to be smLWTstBad)*/
418  smNosInfoArray = -306 /*No sInfoArray. Memory Mgr error.*/
419  };
420 
421  enum
422  {
423  smResrvErr = -307, /*Fatal reserved error. Resreved field <> 0.*/
424  smUnExBusErr = -308, /*Unexpected BusError*/
425  smBLFieldBad = -309, /*ByteLanes field was bad.*/
426  smFHBlockRdErr = -310, /*Error occurred during _sGetFHeader.*/
427  smFHBlkDispErr =
428  -311, /*Error occurred during _sDisposePtr (Dispose of FHeader block).*/
429  smDisposePErr = -312, /*_DisposePointer error*/
430  smNoBoardSRsrc = -313, /*No Board sResource.*/
431  smGetPRErr = -314, /*Error occurred during _sGetPRAMRec (See SIMStatus).*/
432  smNoBoardId = -315, /*No Board Id.*/
433  smInitStatVErr = -316, /*The InitStatusV field was negative after primary or
434  secondary init.*/
435  smInitTblVErr = -317, /*An error occurred while trying to initialize the Slot
436  Resource Table.*/
437  smNoJmpTbl = -318, /*SDM jump table could not be created.*/
438  smReservedSlot =
439  -318, /*slot is reserved, VM should not use this address space.*/
440  smBadBoardId = -319, /*BoardId was wrong; re-init the PRAM record.*/
441  smBusErrTO = -320, /*BusError time out.*/
442  /* These errors are logged in the vendor status field of the sInfo record. */
443  svTempDisable = -32768L, /*Temporarily disable card but run primary init.*/
444  svDisabled =
445  -32640, /*Reserve range -32640 to -32768 for Apple temp disables.*/
446  smBadRefId = -330, /*Reference Id not found in List*/
447  smBadsList = -331, /*Bad sList: Id1 < Id2 < Id3 ...format is not followed.*/
448  smReservedErr = -332, /*Reserved field not zero*/
449  smCodeRevErr = -333 /*Code revision is wrong*/
450  };
451 
452  enum
453  {
454  smCPUErr = -334, /*Code revision is wrong*/
455  smsPointerNil = -335, /*LPointer is nil From sOffsetData. If this error
456  occurs; check sInfo rec for more information.*/
457  smNilsBlockErr =
458  -336, /*Nil sBlock error (Dont allocate and try to use a nil sBlock)*/
459  smSlotOOBErr = -337, /*Slot out of bounds error*/
460  smSelOOBErr = -338, /*Selector out of bounds error*/
461  smNewPErr = -339, /*_NewPtr error*/
462  smBlkMoveErr = -340, /*_BlockMove error*/
463  smCkStatusErr = -341, /*Status of slot = fail.*/
464  smGetDrvrNamErr = -342, /*Error occurred during _sGetDrvrName.*/
465  smDisDrvrNamErr = -343, /*Error occurred during _sDisDrvrName.*/
466  smNoMoresRsrcs = -344, /*No more sResources*/
467  smsGetDrvrErr = -345, /*Error occurred during _sGetDriver.*/
468  smBadsPtrErr = -346, /*Bad pointer was passed to sCalcsPointer*/
469  smByteLanesErr = -347, /*NumByteLanes was determined to be zero.*/
470  smOffsetErr = -348, /*Offset was too big (temporary error*/
471  smNoGoodOpens = -349, /*No opens were successfull in the loop.*/
472  smSRTOvrFlErr = -350, /*SRT over flow.*/
473  smRecNotFnd = -351 /*Record not found in the SRT.*/
474  };
475 
476  enum
477  {
478  /*Dictionary Manager errors*/
479  notBTree = -410, /*The file is not a dictionary.*/
480  btNoSpace = -413, /*Can't allocate disk space.*/
481  btDupRecErr = -414, /*Record already exists.*/
482  btRecNotFnd = -415, /*Record cannot be found.*/
483  btKeyLenErr = -416, /*Maximum key length is too long or equal to zero.*/
484  btKeyAttrErr = -417, /*There is no such a key attribute.*/
485  unknownInsertModeErr = -20000, /*There is no such an insert mode.*/
486  recordDataTooBigErr =
487  -20001, /*The record data is bigger than buffer size (1024 bytes).*/
488  invalidIndexErr = -20002 /*The recordIndex parameter is not valid.*/
489  };
490 
494  enum
495  {
496  fsmFFSNotFoundErr = -431, /* Foreign File system does not exist - new Pack2
497  could return this error too */
498  fsmBusyFFSErr = -432, /* File system is busy, cannot be removed */
499  fsmBadFFSNameErr = -433, /* Name length not 1 <= length <= 31 */
500  fsmBadFSDLenErr = -434, /* FSD size incompatible with current FSM vers */
501  fsmDuplicateFSIDErr = -435, /* FSID already exists on InstallFS */
502  fsmBadFSDVersionErr = -436, /* FSM version incompatible with FSD */
503  fsmNoAlternateStackErr = -437, /* no alternate stack for HFS CI */
504  fsmUnknownFSMMessageErr = -438 /* unknown message passed to FSM */
505  };
506 
507  enum
508  {
509  /* Edition Mgr errors*/
510  editionMgrInitErr = -450, /*edition manager not inited by this app*/
511  badSectionErr = -451, /*not a valid SectionRecord*/
512  notRegisteredSectionErr = -452, /*not a registered SectionRecord*/
513  badEditionFileErr = -453, /*edition file is corrupt*/
514  badSubPartErr = -454, /*can not use sub parts in this release*/
515  multiplePublisherWrn =
516  -460, /*A Publisher is already registered for that container*/
517  containerNotFoundWrn = -461, /*could not find editionContainer at this time*/
518  containerAlreadyOpenWrn = -462, /*container already opened by this section*/
519  notThePublisherWrn =
520  -463 /*not the first registered publisher for that container*/
521  };
522 
523  enum
524  {
525  teScrapSizeErr = -501, /*scrap item too big for text edit record*/
526  hwParamErr = -502, /*bad selector for _HWPriv*/
527  driverHardwareGoneErr = -503 /*disk driver's hardware was disconnected*/
528  };
529 
530  enum
531  {
532  /*Process Manager errors*/
533  procNotFound = -600, /*no eligible process with specified descriptor*/
534  memFragErr = -601, /*not enough room to launch app w/special requirements*/
535  appModeErr = -602, /*memory mode is 32-bit, but app not 32-bit clean*/
536  protocolErr = -603, /*app made module calls in improper order*/
537  hardwareConfigErr = -604, /*hardware configuration not correct for call*/
538  appMemFullErr = -605, /*application SIZE not big enough for launch*/
539  appIsDaemon = -606, /*app is BG-only, and launch flags disallow this*/
540  bufferIsSmall = -607, /*error returns from Post and Accept */
541  noOutstandingHLE = -608,
542  connectionInvalid = -609,
543  noUserInteractionAllowed = -610 /* no user interaction allowed */
544  };
545 
546  enum
547  {
548  /* More Process Manager errors */
549  wrongApplicationPlatform = -875, /* The application could not launch because
550  the required platform is not available */
551  appVersionTooOld =
552  -876, /* The application's creator and version are incompatible with the
553  current version of Mac OS. */
554  notAppropriateForClassic = -877 /* This application won't or shouldn't run on
555  Classic (Problem 2481058). */
556  };
557 
558  /* Thread Manager Error Codes */
559  enum
560  {
561  threadTooManyReqsErr = -617,
562  threadNotFoundErr = -618,
563  threadProtocolErr = -619
564  };
565 
566  /*MemoryDispatch errors*/
567  enum
568  {
569  notEnoughMemoryErr = -620, /*insufficient physical memory*/
570  notHeldErr = -621, /*specified range of memory is not held*/
571  cannotMakeContiguousErr = -622, /*cannot make specified range contiguous*/
572  notLockedErr = -623, /*specified range of memory is not locked*/
573  interruptsMaskedErr = -624, /*don©t call with interrupts masked*/
574  cannotDeferErr = -625, /*unable to defer additional functions*/
575  noMMUErr = -626 /*no MMU present*/
576  };
577 
578  /* FileMapping errors */
579  enum
580  {
581  vmInvalidBackingFileIDErr = -640, /* invalid BackingFileID */
582  vmMappingPrivilegesErr =
583  -641, /* requested MappingPrivileges cannot be obtained */
584  vmBusyBackingFileErr = -642, /* open views found on BackingFile */
585  vmNoMoreBackingFilesErr = -643, /* no more BackingFiles were found */
586  vmInvalidFileViewIDErr = -644, /*invalid FileViewID */
587  vmFileViewAccessErr = -645, /* requested FileViewAccess cannot be obtained */
588  vmNoMoreFileViewsErr = -646, /* no more FileViews were found */
589  vmAddressNotInFileViewErr = -647, /* address is not in a FileView */
590  vmInvalidOwningProcessErr =
591  -648 /* current process does not own the BackingFileID or FileViewID */
592  };
593 
594  /* Database access error codes */
595  enum
596  {
597  rcDBNull = -800,
598  rcDBValue = -801,
599  rcDBError = -802,
600  rcDBBadType = -803,
601  rcDBBreak = -804,
602  rcDBExec = -805,
603  rcDBBadSessID = -806,
604  rcDBBadSessNum = -807, /* bad session number for DBGetConnInfo */
605  rcDBBadDDEV = -808, /* bad ddev specified on DBInit */
606  rcDBAsyncNotSupp = -809, /* ddev does not support async calls */
607  rcDBBadAsyncPB = -810, /* tried to kill a bad pb */
608  rcDBNoHandler = -811, /* no app handler for specified data type */
609  rcDBWrongVersion = -812, /* incompatible versions */
610  rcDBPackNotInited = -813 /* attempt to call other routine before InitDBPack */
611  };
612 
613  /*Help Mgr error range: -850 to -874*/
614  enum
615  {
616  hmHelpDisabled =
617  -850, /* Show Balloons mode was off, call to routine ignored */
618  hmBalloonAborted = -853, /* Returned if mouse was moving or mouse wasn't in
619  window port rect */
620  hmSameAsLastBalloon = -854, /* Returned from HMShowMenuBalloon if menu & item
621  is same as last time */
622  hmHelpManagerNotInited =
623  -855, /* Returned from HMGetHelpMenuHandle if help menu not setup */
624  hmSkippedBalloon =
625  -857, /* Returned from calls if helpmsg specified a skip balloon */
626  hmWrongVersion =
627  -858, /* Returned if help mgr resource was the wrong version */
628  hmUnknownHelpType =
629  -859, /* Returned if help msg record contained a bad type */
630  hmOperationUnsupported = -861, /* Returned from HMShowBalloon call if bad
631  method passed to routine */
632  hmNoBalloonUp = -862, /* Returned from HMRemoveBalloon if no balloon was
633  visible when call was made */
634  hmCloseViewActive =
635  -863 /* Returned from HMRemoveBalloon if CloseView was active */
636  };
637 
638  enum
639  {
640  /*PPC errors*/
641  notInitErr = -900, /*PPCToolBox not initialized*/
642  nameTypeErr =
643  -902, /*Invalid or inappropriate locationKindSelector in locationName*/
644  noPortErr =
645  -903, /*Unable to open port or bad portRefNum. If you're calling */
646  /* AESend, this is because your application does not have */
647  /* the isHighLevelEventAware bit set in your SIZE resource. */
648  noGlobalsErr = -904, /*The system is hosed, better re-boot*/
649  localOnlyErr = -905, /*Network activity is currently disabled*/
650  destPortErr = -906, /*Port does not exist at destination*/
651  sessTableErr = -907, /*Out of session tables, try again later*/
652  noSessionErr = -908, /*Invalid session reference number*/
653  badReqErr = -909, /*bad parameter or invalid state for operation*/
654  portNameExistsErr = -910, /*port is already open (perhaps in another app)*/
655  noUserNameErr = -911, /*user name unknown on destination machine*/
656  userRejectErr = -912, /*Destination rejected the session request*/
657  noMachineNameErr = -913, /*user hasn't named his Macintosh in the Network
658  Setup Control Panel*/
659  noToolboxNameErr = -914, /*A system resource is missing, not too likely*/
660  noResponseErr = -915, /*unable to contact destination*/
661  portClosedErr = -916, /*port was closed*/
662  sessClosedErr = -917, /*session was closed*/
663  badPortNameErr = -919, /*PPCPortRec malformed*/
664  noDefaultUserErr =
665  -922, /*user hasn't typed in owners name in Network Setup Control Pannel*/
666  notLoggedInErr = -923, /*The default userRefNum does not yet exist*/
667  noUserRefErr = -924, /*unable to create a new userRefNum*/
668  networkErr = -925, /*An error has occurred in the network, not too likely*/
669  noInformErr =
670  -926, /*PPCStart failed because destination did not have inform pending*/
671  authFailErr = -927, /*unable to authenticate user at destination*/
672  noUserRecErr = -928, /*Invalid user reference number*/
673  badServiceMethodErr = -930, /*illegal service type, or not supported*/
674  badLocNameErr = -931, /*location name malformed*/
675  guestNotAllowedErr = -932 /*destination port requires authentication*/
676  };
677 
678  /* Font Mgr errors*/
679  enum
680  {
681  kFMIterationCompleted = -980L,
682  kFMInvalidFontFamilyErr = -981L,
683  kFMInvalidFontErr = -982L,
684  kFMIterationScopeModifiedErr = -983L,
685  kFMFontTableAccessErr = -984L,
686  kFMFontContainerAccessErr = -985L
687  };
688 
689  enum
690  {
691  noMaskFoundErr = -1000 /*Icon Utilties Error*/
692  };
693 
694  enum
695  {
696  nbpBuffOvr = -1024, /*Buffer overflow in LookupName*/
697  nbpNoConfirm = -1025,
698  nbpConfDiff = -1026, /*Name confirmed at different socket*/
699  nbpDuplicate = -1027, /*Duplicate name exists already*/
700  nbpNotFound = -1028, /*Name not found on remove*/
701  nbpNISErr = -1029 /*Error trying to open the NIS*/
702  };
703 
704  enum
705  {
706  aspBadVersNum = -1066, /*Server cannot support this ASP version*/
707  aspBufTooSmall = -1067, /*Buffer too small*/
708  aspNoMoreSess = -1068, /*No more sessions on server*/
709  aspNoServers = -1069, /*No servers at that address*/
710  aspParamErr = -1070, /*Parameter error*/
711  aspServerBusy = -1071, /*Server cannot open another session*/
712  aspSessClosed = -1072, /*Session closed*/
713  aspSizeErr = -1073, /*Command block too big*/
714  aspTooMany = -1074, /*Too many clients (server error)*/
715  aspNoAck = -1075 /*No ack on attention request (server err)*/
716  };
717 
718  enum
719  {
720  reqFailed = -1096,
721  tooManyReqs = -1097,
722  tooManySkts = -1098,
723  badATPSkt = -1099,
724  badBuffNum = -1100,
725  noRelErr = -1101,
726  cbNotFound = -1102,
727  noSendResp = -1103,
728  noDataArea = -1104,
729  reqAborted = -1105
730  };
731 
732  /* ADSP Error Codes */
733  enum
734  {
735  /* driver control ioResults */
736  errRefNum = -1280, /* bad connection refNum */
737  errAborted = -1279, /* control call was aborted */
738  errState = -1278, /* bad connection state for this operation */
739  errOpening = -1277, /* open connection request failed */
740  errAttention = -1276, /* attention message too long */
741  errFwdReset = -1275, /* read terminated by forward reset */
742  errDSPQueueSize = -1274, /* DSP Read/Write Queue Too small */
743  errOpenDenied = -1273 /* open connection request was denied */
744  };
745 
746  /*--------------------------------------------------------------
747  Apple event manager error messages
748  --------------------------------------------------------------*/
749 
750  enum
751  {
752  errAECoercionFail =
753  -1700, /* bad parameter data or unable to coerce the data supplied */
754  errAEDescNotFound = -1701,
755  errAECorruptData = -1702,
756  errAEWrongDataType = -1703,
757  errAENotAEDesc = -1704,
758  errAEBadListItem = -1705, /* the specified list item does not exist */
759  errAENewerVersion = -1706, /* need newer version of the AppleEvent manager */
760  errAENotAppleEvent = -1707, /* the event is not in AppleEvent format */
761  errAEEventNotHandled =
762  -1708, /* the AppleEvent was not handled by any handler */
763  errAEReplyNotValid =
764  -1709, /* AEResetTimer was passed an invalid reply parameter */
765  errAEUnknownSendMode = -1710, /* mode wasn't NoReply, WaitReply, or QueueReply
766  or Interaction level is unknown */
767  errAEWaitCanceled = -1711, /* in AESend, the user cancelled out of wait loop
768  for reply or receipt */
769  errAETimeout = -1712, /* the AppleEvent timed out */
770  errAENoUserInteraction = -1713, /* no user interaction is allowed */
771  errAENotASpecialFunction =
772  -1714, /* there is no special function for/with this keyword */
773  errAEParamMissed = -1715, /* a required parameter was not accessed */
774  errAEUnknownAddressType = -1716, /* the target address type is not known */
775  errAEHandlerNotFound =
776  -1717, /* no handler in the dispatch tables fits the parameters to
777  AEGetEventHandler or AEGetCoercionHandler */
778  errAEReplyNotArrived = -1718, /* the contents of the reply you are accessing
779  have not arrived yet */
780  errAEIllegalIndex = -1719, /* index is out of range in a put operation */
781  errAEImpossibleRange = -1720, /* A range like 3rd to 2nd, or 1st to all. */
782  errAEWrongNumberArgs =
783  -1721, /* Logical op kAENOT used with other than 1 term */
784  errAEAccessorNotFound = -1723, /* Accessor proc matching wantClass and
785  containerType or wildcards not found */
786  errAENoSuchLogical = -1725, /* Something other than AND, OR, or NOT */
787  errAEBadTestKey =
788  -1726, /* Test is neither typeLogicalDescriptor nor typeCompDescriptor */
789  errAENotAnObjSpec = -1727, /* Param to AEResolve not of type 'obj ' */
790  errAENoSuchObject =
791  -1728, /* e.g.,: specifier asked for the 3rd, but there are only 2.
792  Basically, this indicates a run-time resolution error. */
793  errAENegativeCount = -1729, /* CountProc returned negative value */
794  errAEEmptyListContainer =
795  -1730, /* Attempt to pass empty list as container to accessor */
796  errAEUnknownObjectType =
797  -1731, /* available only in version 1.0.1 or greater */
798  errAERecordingIsAlreadyOn =
799  -1732, /* available only in version 1.0.1 or greater */
800  errAEReceiveTerminate = -1733, /* break out of all levels of AEReceive to the
801  topmost (1.1 or greater) */
802  errAEReceiveEscapeCurrent =
803  -1734, /* break out of only lowest level of AEReceive (1.1 or greater) */
804  errAEEventFiltered = -1735, /* event has been filtered, and should not be
805  propogated (1.1 or greater) */
806  errAEDuplicateHandler = -1736, /* attempt to install handler in table for
807  identical class and id (1.1 or greater) */
808  errAEStreamBadNesting = -1737, /* nesting violation while streaming */
809  errAEStreamAlreadyConverted =
810  -1738, /* attempt to convert a stream that has already been converted */
811  errAEDescIsNull = -1739, /* attempting to perform an invalid operation on a
812  null descriptor */
813  errAEBuildSyntaxError =
814  -1740, /* AEBuildDesc and friends detected a syntax error */
815  errAEBufferTooSmall = -1741 /* buffer for AEFlattenDesc too small */
816  };
817 
818  enum
819  {
820  errOSASystemError = -1750,
821  errOSAInvalidID = -1751,
822  errOSABadStorageType = -1752,
823  errOSAScriptError = -1753,
824  errOSABadSelector = -1754,
825  errOSASourceNotAvailable = -1756,
826  errOSANoSuchDialect = -1757,
827  errOSADataFormatObsolete = -1758,
828  errOSADataFormatTooNew = -1759,
829  errOSACorruptData = errAECorruptData,
830  errOSARecordingIsAlreadyOn = errAERecordingIsAlreadyOn,
831  errOSAComponentMismatch =
832  -1761, /* Parameters are from 2 different components */
833  errOSACantOpenComponent =
834  -1762 /* Can't connect to scripting system with that ID */
835  };
836 
837  /* AppleEvent error definitions */
838  enum
839  {
840  errOffsetInvalid = -1800,
841  errOffsetIsOutsideOfView = -1801,
842  errTopOfDocument = -1810,
843  errTopOfBody = -1811,
844  errEndOfDocument = -1812,
845  errEndOfBody = -1813
846  };
847 
848  enum
849  {
850  /* Drag Manager error codes */
851  badDragRefErr = -1850, /* unknown drag reference */
852  badDragItemErr = -1851, /* unknown drag item reference */
853  badDragFlavorErr = -1852, /* unknown flavor type */
854  duplicateFlavorErr = -1853, /* flavor type already exists */
855  cantGetFlavorErr = -1854, /* error while trying to get flavor data */
856  duplicateHandlerErr = -1855, /* handler already exists */
857  handlerNotFoundErr = -1856, /* handler not found */
858  dragNotAcceptedErr = -1857, /* drag was not accepted by receiver */
859  unsupportedForPlatformErr = -1858, /* call is for PowerPC only */
860  noSuitableDisplaysErr = -1859, /* no displays support translucency */
861  badImageRgnErr = -1860, /* bad translucent image region */
862  badImageErr = -1861, /* bad translucent image PixMap */
863  nonDragOriginatorErr = -1862 /* illegal attempt at originator only data */
864  };
865 
866  /*QuickTime errors*/
867  enum
868  {
869  couldNotResolveDataRef = -2000,
870  badImageDescription = -2001,
871  badPublicMovieAtom = -2002,
872  cantFindHandler = -2003,
873  cantOpenHandler = -2004,
874  badComponentType = -2005,
875  noMediaHandler = -2006,
876  noDataHandler = -2007,
877  invalidMedia = -2008,
878  invalidTrack = -2009,
879  invalidMovie = -2010,
880  invalidSampleTable = -2011,
881  invalidDataRef = -2012,
882  invalidHandler = -2013,
883  invalidDuration = -2014,
884  invalidTime = -2015,
885  cantPutPublicMovieAtom = -2016,
886  badEditList = -2017,
887  mediaTypesDontMatch = -2018,
888  progressProcAborted = -2019,
889  movieToolboxUninitialized = -2020,
890  noRecordOfApp = movieToolboxUninitialized, /* replica */
891  wfFileNotFound = -2021,
892  cantCreateSingleForkFile = -2022, /* happens when file already exists */
893  invalidEditState = -2023,
894  nonMatchingEditState = -2024,
895  staleEditState = -2025,
896  userDataItemNotFound = -2026,
897  maxSizeToGrowTooSmall = -2027,
898  badTrackIndex = -2028,
899  trackIDNotFound = -2029,
900  trackNotInMovie = -2030,
901  timeNotInTrack = -2031,
902  timeNotInMedia = -2032,
903  badEditIndex = -2033,
904  internalQuickTimeError = -2034,
905  cantEnableTrack = -2035,
906  invalidRect = -2036,
907  invalidSampleNum = -2037,
908  invalidChunkNum = -2038,
909  invalidSampleDescIndex = -2039,
910  invalidChunkCache = -2040,
911  invalidSampleDescription = -2041,
912  dataNotOpenForRead = -2042,
913  dataNotOpenForWrite = -2043,
914  dataAlreadyOpenForWrite = -2044,
915  dataAlreadyClosed = -2045,
916  endOfDataReached = -2046,
917  dataNoDataRef = -2047,
918  noMovieFound = -2048,
919  invalidDataRefContainer = -2049,
920  badDataRefIndex = -2050,
921  noDefaultDataRef = -2051,
922  couldNotUseAnExistingSample = -2052,
923  featureUnsupported = -2053,
924  noVideoTrackInMovieErr = -2054, /* QT for Windows error */
925  noSoundTrackInMovieErr = -2055, /* QT for Windows error */
926  soundSupportNotAvailableErr = -2056, /* QT for Windows error */
927  unsupportedAuxiliaryImportData = -2057,
928  auxiliaryExportDataUnavailable = -2058,
929  samplesAlreadyInMediaErr = -2059,
930  noSourceTreeFoundErr = -2060,
931  sourceNotFoundErr = -2061,
932  movieTextNotFoundErr = -2062,
933  missingRequiredParameterErr = -2063,
934  invalidSpriteWorldPropertyErr = -2064,
935  invalidSpritePropertyErr = -2065,
936  gWorldsNotSameDepthAndSizeErr = -2066,
937  invalidSpriteIndexErr = -2067,
938  invalidImageIndexErr = -2068,
939  invalidSpriteIDErr = -2069
940  };
941 
942  enum
943  {
944  internalComponentErr = -2070,
945  notImplementedMusicOSErr = -2071,
946  cantSendToSynthesizerOSErr = -2072,
947  cantReceiveFromSynthesizerOSErr = -2073,
948  illegalVoiceAllocationOSErr = -2074,
949  illegalPartOSErr = -2075,
950  illegalChannelOSErr = -2076,
951  illegalKnobOSErr = -2077,
952  illegalKnobValueOSErr = -2078,
953  illegalInstrumentOSErr = -2079,
954  illegalControllerOSErr = -2080,
955  midiManagerAbsentOSErr = -2081,
956  synthesizerNotRespondingOSErr = -2082,
957  synthesizerOSErr = -2083,
958  illegalNoteChannelOSErr = -2084,
959  noteChannelNotAllocatedOSErr = -2085,
960  tunePlayerFullOSErr = -2086,
961  tuneParseOSErr = -2087,
962  noExportProcAvailableErr = -2089,
963  videoOutputInUseErr = -2090
964  };
965 
966  enum
967  {
968  componentDllLoadErr =
969  -2091, /* Windows specific errors (when component is loading)*/
970  componentDllEntryNotFoundErr =
971  -2092, /* Windows specific errors (when component is loading)*/
972  qtmlDllLoadErr = -2093, /* Windows specific errors (when qtml is loading)*/
973  qtmlDllEntryNotFoundErr =
974  -2094, /* Windows specific errors (when qtml is loading)*/
975  qtmlUninitialized = -2095,
976  unsupportedOSErr = -2096,
977  unsupportedProcessorErr = -2097
978  };
979 
980  enum
981  {
982  cannotFindAtomErr = -2101,
983  notLeafAtomErr = -2102,
984  atomsNotOfSameTypeErr = -2103,
985  atomIndexInvalidErr = -2104,
986  duplicateAtomTypeAndIDErr = -2105,
987  invalidAtomErr = -2106,
988  invalidAtomContainerErr = -2107,
989  invalidAtomTypeErr = -2108,
990  cannotBeLeafAtomErr = -2109,
991  pathTooLongErr = -2110,
992  emptyPathErr = -2111,
993  noPathMappingErr = -2112,
994  pathNotVerifiedErr = -2113,
995  unknownFormatErr = -2114,
996  wackBadFileErr = -2115,
997  wackForkNotFoundErr = -2116,
998  wackBadMetaDataErr = -2117,
999  qfcbNotFoundErr = -2118,
1000  qfcbNotCreatedErr = -2119,
1001  AAPNotCreatedErr = -2120,
1002  AAPNotFoundErr = -2121,
1003  ASDBadHeaderErr = -2122,
1004  ASDBadForkErr = -2123,
1005  ASDEntryNotFoundErr = -2124,
1006  fileOffsetTooBigErr = -2125,
1007  notAllowedToSaveMovieErr = -2126,
1008  qtNetworkAlreadyAllocatedErr = -2127,
1009  urlDataHHTTPProtocolErr = -2129,
1010  urlDataHHTTPNoNetDriverErr = -2130,
1011  urlDataHHTTPURLErr = -2131,
1012  urlDataHHTTPRedirectErr = -2132,
1013  urlDataHFTPProtocolErr = -2133,
1014  urlDataHFTPShutdownErr = -2134,
1015  urlDataHFTPBadUserErr = -2135,
1016  urlDataHFTPBadPasswordErr = -2136,
1017  urlDataHFTPServerErr = -2137,
1018  urlDataHFTPDataConnectionErr = -2138,
1019  urlDataHFTPNoDirectoryErr = -2139,
1020  urlDataHFTPQuotaErr = -2140,
1021  urlDataHFTPPermissionsErr = -2141,
1022  urlDataHFTPFilenameErr = -2142,
1023  urlDataHFTPNoNetDriverErr = -2143,
1024  urlDataHFTPBadNameListErr = -2144,
1025  urlDataHFTPNeedPasswordErr = -2145,
1026  urlDataHFTPNoPasswordErr = -2146,
1027  urlDataHFTPServerDisconnectedErr = -2147,
1028  urlDataHFTPURLErr = -2148,
1029  notEnoughDataErr = -2149,
1030  qtActionNotHandledErr = -2157,
1031  qtXMLParseErr = -2158,
1032  qtXMLApplicationErr = -2159
1033  };
1034 
1035  enum
1036  {
1037  digiUnimpErr = -2201, /* feature unimplemented */
1038  qtParamErr = -2202, /* bad input parameter (out of range, etc) */
1039  matrixErr = -2203, /* bad matrix, digitizer did nothing */
1040  notExactMatrixErr = -2204, /* warning of bad matrix, digitizer did its best */
1041  noMoreKeyColorsErr = -2205, /* all key indexes in use */
1042  notExactSizeErr = -2206, /* Can©t do exact size requested */
1043  badDepthErr = -2207, /* Can©t digitize into this depth */
1044  noDMAErr =
1045  -2208, /* Can©t do DMA digitizing (i.e. can't go to requested dest */
1046  badCallOrderErr = -2209 /* Usually due to a status call being called prior to
1047  being setup first */
1048  };
1049 
1050  /* Kernel Error Codes */
1051  enum
1052  {
1053  kernelIncompleteErr = -2401,
1054  kernelCanceledErr = -2402,
1055  kernelOptionsErr = -2403,
1056  kernelPrivilegeErr = -2404,
1057  kernelUnsupportedErr = -2405,
1058  kernelObjectExistsErr = -2406,
1059  kernelWritePermissionErr = -2407,
1060  kernelReadPermissionErr = -2408,
1061  kernelExecutePermissionErr = -2409,
1062  kernelDeletePermissionErr = -2410,
1063  kernelExecutionLevelErr = -2411,
1064  kernelAttributeErr = -2412,
1065  kernelAsyncSendLimitErr = -2413,
1066  kernelAsyncReceiveLimitErr = -2414,
1067  kernelTimeoutErr = -2415,
1068  kernelInUseErr = -2416,
1069  kernelTerminatedErr = -2417,
1070  kernelExceptionErr = -2418,
1071  kernelIDErr = -2419,
1072  kernelAlreadyFreeErr = -2421,
1073  kernelReturnValueErr = -2422,
1074  kernelUnrecoverableErr = -2499
1075  };
1076 
1077  enum
1078  {
1079  /* Text Services Mgr error codes */
1080  tsmComponentNoErr = 0, /* component result = no error */
1081  tsmUnsupScriptLanguageErr = -2500,
1082  tsmInputMethodNotFoundErr = -2501,
1083  tsmNotAnAppErr = -2502, /* not an application error */
1084  tsmAlreadyRegisteredErr = -2503, /* want to register again error */
1085  tsmNeverRegisteredErr =
1086  -2504, /* app never registered error (not TSM aware) */
1087  tsmInvalidDocIDErr = -2505, /* invalid TSM documentation id */
1088  tsmTSMDocBusyErr = -2506, /* document is still active */
1089  tsmDocNotActiveErr = -2507, /* document is NOT active */
1090  tsmNoOpenTSErr = -2508, /* no open text service */
1091  tsmCantOpenComponentErr = -2509, /* can©t open the component */
1092  tsmTextServiceNotFoundErr = -2510, /* no text service found */
1093  tsmDocumentOpenErr = -2511, /* there are open documents */
1094  tsmUseInputWindowErr =
1095  -2512, /* not TSM aware because we are using input window */
1096  tsmTSHasNoMenuErr = -2513, /* the text service has no menu */
1097  tsmTSNotOpenErr = -2514, /* text service is not open */
1098  tsmComponentAlreadyOpenErr =
1099  -2515, /* text service already opened for the document */
1100  tsmInputMethodIsOldErr = -2516, /* returned by GetDefaultInputMethod */
1101  tsmScriptHasNoIMErr =
1102  -2517, /* script has no imput method or is using old IM */
1103  tsmUnsupportedTypeErr = -2518, /* unSupported interface type error */
1104  tsmUnknownErr = -2519, /* any other errors */
1105  tsmInvalidContext = -2520, /* Invalid TSMContext specified in call */
1106  tsmNoHandler = -2521, /* No Callback Handler exists for callback */
1107  tsmNoMoreTokens =
1108  -2522, /* No more tokens are available for the source text */
1109  tsmNoStem = -2523, /* No stem exists for the token */
1110  tsmDefaultIsNotInputMethodErr =
1111  -2524 /* Current Input source is KCHR or uchr, not Input Method
1112  (GetDefaultInputMethod) */
1113  };
1114 
1115  enum
1116  {
1117  /* Mixed Mode error codes */
1118  mmInternalError = -2526
1119  };
1120 
1121  /* NameRegistry error codes */
1122  enum
1123  {
1124  nrLockedErr = -2536,
1125  nrNotEnoughMemoryErr = -2537,
1126  nrInvalidNodeErr = -2538,
1127  nrNotFoundErr = -2539,
1128  nrNotCreatedErr = -2540,
1129  nrNameErr = -2541,
1130  nrNotSlotDeviceErr = -2542,
1131  nrDataTruncatedErr = -2543,
1132  nrPowerErr = -2544,
1133  nrPowerSwitchAbortErr = -2545,
1134  nrTypeMismatchErr = -2546,
1135  nrNotModifiedErr = -2547,
1136  nrOverrunErr = -2548,
1137  nrResultCodeBase = -2549,
1138  nrPathNotFound = -2550, /* a path component lookup failed */
1139  nrPathBufferTooSmall = -2551, /* buffer for path is too small */
1140  nrInvalidEntryIterationOp = -2552, /* invalid entry iteration operation */
1141  nrPropertyAlreadyExists = -2553, /* property already exists */
1142  nrIterationDone = -2554, /* iteration operation is done */
1143  nrExitedIteratorScope = -2555, /* outer scope of iterator was exited */
1144  nrTransactionAborted = -2556, /* transaction was aborted */
1145  nrCallNotSupported =
1146  -2557 /* This call is not available or supported on this machine */
1147  };
1148 
1149  /* Icon Services error codes */
1150  enum
1151  {
1152  invalidIconRefErr = -2580, /* The icon ref is not valid */
1153  noSuchIconErr = -2581, /* The requested icon could not be found */
1154  noIconDataAvailableErr = -2582 /* The necessary icon data is not available */
1155  };
1156 
1163  enum
1164  {
1165  errOSACantCoerce = errAECoercionFail, /* Signaled when a value can't be
1166  coerced to the desired type. */
1167  errOSACantAccess = errAENoSuchObject, /* Signaled when an object is not found
1168  in a container*/
1169  errOSACantAssign =
1170  -10006, /* Signaled when an object cannot be set in a container.*/
1171  errOSAGeneralError = -2700, /* Signaled by user scripts or applications when
1172  no actual error code is to be returned.*/
1173  errOSADivideByZero =
1174  -2701, /* Signaled when there is an attempt to divide by zero*/
1175  errOSANumericOverflow = -2702, /* Signaled when integer or real value is too
1176  large to be represented*/
1177  errOSACantLaunch =
1178  -2703, /* Signaled when application can't be launched or when it is remote
1179  and program linking is not enabled*/
1180  errOSAAppNotHighLevelEventAware =
1181  -2704, /* Signaled when an application can't respond to AppleEvents*/
1182  errOSACorruptTerminology = -2705, /* Signaled when an application's
1183  terminology resource is not readable*/
1184  errOSAStackOverflow = -2706, /* Signaled when the runtime stack overflows*/
1185  errOSAInternalTableOverflow =
1186  -2707, /* Signaled when a runtime internal data structure overflows*/
1187  errOSADataBlockTooLarge =
1188  -2708, /* Signaled when an intrinsic limitation is exceeded for the size
1189  of a value or data structure.*/
1190  errOSACantGetTerminology = -2709,
1191  errOSACantCreate = -2710
1192  };
1193 
1208  enum
1209  {
1210  errOSATypeError = errAEWrongDataType,
1211  OSAMessageNotUnderstood =
1212  errAEEventNotHandled, /* Signaled when a message was sent to an object
1213  that didn't handle it*/
1214  OSAUndefinedHandler = errAEHandlerNotFound, /* Signaled when a function to be
1215  returned doesn't exist. */
1216  OSAIllegalAccess = errAEAccessorNotFound, /* Signaled when a container can
1217  never have the requested object*/
1218  OSAIllegalIndex = errAEIllegalIndex, /* Signaled when index was out of range.
1219  Specialization of errOSACantAccess*/
1220  OSAIllegalRange =
1221  errAEImpossibleRange, /* Signaled when a range is screwy. Specialization
1222  of errOSACantAccess*/
1223  OSAIllegalAssign =
1224  -10003, /* Signaled when an object can never be set in a container*/
1225  OSASyntaxError = -2740, /* Signaled when a syntax error occurs. (e.g. "Syntax
1226  error" or "<this> can't go after <that>")*/
1227  OSASyntaxTypeError =
1228  -2741, /* Signaled when another form of syntax was expected. (e.g.
1229  "expected a <type> but found <this>")*/
1230  OSATokenTooLong =
1231  -2742, /* Signaled when a name or number is too long to be parsed*/
1232  OSAMissingParameter =
1233  errAEDescNotFound, /* Signaled when a parameter is missing for a function
1234  invocation*/
1235  OSAParameterMismatch =
1236  errAEWrongNumberArgs, /* Signaled when function is called with the wrong
1237  number of parameters, or a parameter pattern
1238  cannot be matched*/
1239  OSADuplicateParameter =
1240  -2750, /* Signaled when a formal parameter, local variable, or instance
1241  variable is specified more than once*/
1242  OSADuplicateProperty =
1243  -2751, /* Signaled when a formal parameter, local variable, or instance
1244  variable is specified more than once.*/
1245  OSADuplicateHandler =
1246  -2752, /* Signaled when more than one handler is defined with the same
1247  name in a scope where the language doesn't allow it*/
1248  OSAUndefinedVariable =
1249  -2753, /* Signaled when a variable is accessed that has no value*/
1250  OSAInconsistentDeclarations =
1251  -2754, /* Signaled when a variable is declared inconsistently in the same
1252  scope, such as both local and global*/
1253  OSAControlFlowError =
1254  -2755 /* Signaled when illegal control flow occurs in an application (no
1255  catcher for throw, non-lexical loop exit, etc.)*/
1256  };
1257 
1274  /**************************************************************************
1275  Apple Script Error Codes
1276  **************************************************************************/
1277  /* Runtime errors: */
1278  enum
1279  {
1280  errASCantConsiderAndIgnore = -2720,
1281  errASCantCompareMoreThan32k = -2721, /* Parser/Compiler errors: */
1282  errASTerminologyNestingTooDeep = -2760,
1283  errASIllegalFormalParameter = -2761,
1284  errASParameterNotForEvent = -2762,
1285  errASNoResultReturned =
1286  -2763, /* The range -2780 thru -2799 is reserved for dialect specific
1287  error codes. (Error codes from different dialects may overlap.)
1288  */
1289  errASInconsistentNames = -2780 /* English errors: */
1290  };
1291 
1292  /* The preferred spelling for Code Fragment Manager errors:*/
1293  enum
1294  {
1295  cfragFirstErrCode = -2800, /* The first value in the range of CFM errors.*/
1296  cfragContextIDErr = -2800, /* The context ID was not valid.*/
1297  cfragConnectionIDErr = -2801, /* The connection ID was not valid.*/
1298  cfragNoSymbolErr = -2802, /* The specified symbol was not found.*/
1299  cfragNoSectionErr = -2803, /* The specified section was not found.*/
1300  cfragNoLibraryErr = -2804, /* The named library was not found.*/
1301  cfragDupRegistrationErr =
1302  -2805, /* The registration name was already in use.*/
1303  cfragFragmentFormatErr = -2806, /* A fragment's container format is unknown.*/
1304  cfragUnresolvedErr = -2807, /* A fragment had "hard" unresolved imports.*/
1305  cfragNoPositionErr =
1306  -2808, /* The registration insertion point was not found.*/
1307  cfragNoPrivateMemErr = -2809, /* Out of memory for internal bookkeeping.*/
1308  cfragNoClientMemErr =
1309  -2810, /* Out of memory for fragment mapping or section instances.*/
1310  cfragNoIDsErr = -2811, /* No more CFM IDs for contexts, connections, etc.*/
1311  cfragInitOrderErr = -2812, /* */
1312  cfragImportTooOldErr = -2813, /* An import library was too old for a client.*/
1313  cfragImportTooNewErr = -2814, /* An import library was too new for a client.*/
1314  cfragInitLoopErr = -2815, /* Circularity in required initialization order.*/
1315  cfragInitAtBootErr = -2816, /* A boot library has an initialization function.
1316  (System 7 only)*/
1317  cfragLibConnErr = -2817, /* */
1318  cfragCFMStartupErr = -2818, /* Internal error during CFM initialization.*/
1319  cfragCFMInternalErr =
1320  -2819, /* An internal inconstistancy has been detected.*/
1321  cfragFragmentCorruptErr =
1322  -2820, /* A fragment's container was corrupt (known format).*/
1323  cfragInitFunctionErr =
1324  -2821, /* A fragment's initialization routine returned an error.*/
1325  cfragNoApplicationErr =
1326  -2822, /* No application member found in the cfrg resource.*/
1327  cfragArchitectureErr =
1328  -2823, /* A fragment has an unacceptable architecture.*/
1329  cfragFragmentUsageErr = -2824, /* A semantic error in usage of the fragment.*/
1330  cfragFileSizeErr = -2825, /* A file was too large to be mapped.*/
1331  cfragNotClosureErr = -2826, /* The closure ID was actually a connection ID.*/
1332  cfragNoRegistrationErr = -2827, /* The registration name was not found.*/
1333  cfragContainerIDErr = -2828, /* The fragment container ID was not valid.*/
1334  cfragClosureIDErr = -2829, /* The closure ID was not valid.*/
1335  cfragAbortClosureErr =
1336  -2830, /* Used by notification handlers to abort a closure.*/
1337  cfragOutputLengthErr =
1338  -2831, /* An output parameter is too small to hold the value.*/
1339  cfragLastErrCode = -2899 /* The last value in the range of CFM errors.*/
1340  };
1341 
1342 #if OLDROUTINENAMES
1343  /* The old spelling for Code Fragment Manager errors, kept for compatibility:*/
1344  enum
1345  {
1346  fragContextNotFound = cfragContextIDErr,
1347  fragConnectionIDNotFound = cfragConnectionIDErr,
1348  fragSymbolNotFound = cfragNoSymbolErr,
1349  fragSectionNotFound = cfragNoSectionErr,
1350  fragLibNotFound = cfragNoLibraryErr,
1351  fragDupRegLibName = cfragDupRegistrationErr,
1352  fragFormatUnknown = cfragFragmentFormatErr,
1353  fragHadUnresolveds = cfragUnresolvedErr,
1354  fragNoMem = cfragNoPrivateMemErr,
1355  fragNoAddrSpace = cfragNoClientMemErr,
1356  fragNoContextIDs = cfragNoIDsErr,
1357  fragObjectInitSeqErr = cfragInitOrderErr,
1358  fragImportTooOld = cfragImportTooOldErr,
1359  fragImportTooNew = cfragImportTooNewErr,
1360  fragInitLoop = cfragInitLoopErr,
1361  fragInitRtnUsageErr = cfragInitAtBootErr,
1362  fragLibConnErr = cfragLibConnErr,
1363  fragMgrInitErr = cfragCFMStartupErr,
1364  fragConstErr = cfragCFMInternalErr,
1365  fragCorruptErr = cfragFragmentCorruptErr,
1366  fragUserInitProcErr = cfragInitFunctionErr,
1367  fragAppNotFound = cfragNoApplicationErr,
1368  fragArchError = cfragArchitectureErr,
1369  fragInvalidFragmentUsage = cfragFragmentUsageErr,
1370  fragLastErrCode = cfragLastErrCode
1371  };
1372 
1373 #endif /* OLDROUTINENAMES */
1374 
1375  /*Component Manager & component errors*/
1376  enum
1377  {
1378  invalidComponentID = -3000,
1379  validInstancesExist = -3001,
1380  componentNotCaptured = -3002,
1381  componentDontRegister = -3003,
1382  unresolvedComponentDLLErr = -3004,
1383  retryComponentRegistrationErr = -3005
1384  };
1385 
1386  /*Translation manager & Translation components*/
1387  enum
1388  {
1389  invalidTranslationPathErr =
1390  -3025, /*Source type to destination type not a valid path*/
1391  couldNotParseSourceFileErr =
1392  -3026, /*Source document does not contain source type*/
1393  noTranslationPathErr = -3030,
1394  badTranslationSpecErr = -3031,
1395  noPrefAppErr = -3032
1396  };
1397 
1398  enum
1399  {
1400  buf2SmallErr = -3101,
1401  noMPPErr = -3102,
1402  ckSumErr = -3103,
1403  extractErr = -3104,
1404  readQErr = -3105,
1405  atpLenErr = -3106,
1406  atpBadRsp = -3107,
1407  recNotFnd = -3108,
1408  sktClosedErr = -3109
1409  };
1410 
1411  /* OpenTransport errors*/
1412  enum
1413  {
1414  kOTNoError = 0, /* No Error occurred */
1415  kOTOutOfMemoryErr = -3211, /* OT ran out of memory, may be a temporary */
1416  kOTNotFoundErr = -3201, /* OT generic not found error */
1417  kOTDuplicateFoundErr = -3216, /* OT generic duplicate found error */
1418  kOTBadAddressErr =
1419  -3150, /* XTI2OSStatus(TBADADDR) A Bad address was specified */
1420  kOTBadOptionErr =
1421  -3151, /* XTI2OSStatus(TBADOPT) A Bad option was specified */
1422  kOTAccessErr = -3152, /* XTI2OSStatus(TACCES) Missing access permission */
1423  kOTBadReferenceErr = -3153, /* XTI2OSStatus(TBADF) Bad provider reference */
1424  kOTNoAddressErr = -3154, /* XTI2OSStatus(TNOADDR) No address was specified */
1425  kOTOutStateErr =
1426  -3155, /* XTI2OSStatus(TOUTSTATE) Call issued in wrong state */
1427  kOTBadSequenceErr =
1428  -3156, /* XTI2OSStatus(TBADSEQ) Sequence specified does not exist */
1429  kOTSysErrorErr = -3157, /* XTI2OSStatus(TSYSERR) A system error occurred */
1430  kOTLookErr = -3158, /* XTI2OSStatus(TLOOK) An event occurred - call Look() */
1431  kOTBadDataErr = -3159, /* XTI2OSStatus(TBADDATA) An illegal amount of data was
1432  specified */
1433  kOTBufferOverflowErr =
1434  -3160, /* XTI2OSStatus(TBUFOVFLW) Passed buffer not big enough */
1435  kOTFlowErr = -3161, /* XTI2OSStatus(TFLOW) Provider is flow-controlled */
1436  kOTNoDataErr =
1437  -3162, /* XTI2OSStatus(TNODATA) No data available for reading */
1438  kOTNoDisconnectErr =
1439  -3163, /* XTI2OSStatus(TNODIS) No disconnect indication available */
1440  kOTNoUDErrErr = -3164, /* XTI2OSStatus(TNOUDERR) No Unit Data Error indication
1441  available */
1442  kOTBadFlagErr =
1443  -3165, /* XTI2OSStatus(TBADFLAG) A Bad flag value was supplied */
1444  kOTNoReleaseErr =
1445  -3166, /* XTI2OSStatus(TNOREL) No orderly release indication available */
1446  kOTNotSupportedErr =
1447  -3167, /* XTI2OSStatus(TNOTSUPPORT) Command is not supported */
1448  kOTStateChangeErr =
1449  -3168, /* XTI2OSStatus(TSTATECHNG) State is changing - try again later */
1450  kOTNoStructureTypeErr = -3169, /* XTI2OSStatus(TNOSTRUCTYPE) Bad structure
1451  type requested for OTAlloc */
1452  kOTBadNameErr =
1453  -3170, /* XTI2OSStatus(TBADNAME) A bad endpoint name was supplied */
1454  kOTBadQLenErr =
1455  -3171, /* XTI2OSStatus(TBADQLEN) A Bind to an in-use addr with qlen > 0 */
1456  kOTAddressBusyErr =
1457  -3172, /* XTI2OSStatus(TADDRBUSY) Address requested is already in use */
1458  kOTIndOutErr =
1459  -3173, /* XTI2OSStatus(TINDOUT) Accept failed because of pending listen */
1460  kOTProviderMismatchErr = -3174, /* XTI2OSStatus(TPROVMISMATCH) Tried to accept
1461  on incompatible endpoint */
1462  kOTResQLenErr = -3175, /* XTI2OSStatus(TRESQLEN) */
1463  kOTResAddressErr = -3176, /* XTI2OSStatus(TRESADDR) */
1464  kOTQFullErr = -3177, /* XTI2OSStatus(TQFULL) */
1465  kOTProtocolErr =
1466  -3178, /* XTI2OSStatus(TPROTO) An unspecified provider error occurred */
1467  kOTBadSyncErr =
1468  -3179, /* XTI2OSStatus(TBADSYNC) A synchronous call at interrupt time */
1469  kOTCanceledErr =
1470  -3180, /* XTI2OSStatus(TCANCELED) The command was cancelled */
1471  kEPERMErr = -3200, /* Permission denied */
1472  kENOENTErr = -3201, /* No such file or directory */
1473  kENORSRCErr = -3202, /* No such resource */
1474  kEINTRErr = -3203, /* Interrupted system service */
1475  kEIOErr = -3204, /* I/O error */
1476  kENXIOErr = -3205, /* No such device or address */
1477  kEBADFErr = -3208, /* Bad file number */
1478  kEAGAINErr = -3210, /* Try operation again later */
1479  kENOMEMErr = -3211, /* Not enough space */
1480  kEACCESErr = -3212, /* Permission denied */
1481  kEFAULTErr = -3213, /* Bad address */
1482  kEBUSYErr = -3215, /* Device or resource busy */
1483  kEEXISTErr = -3216, /* File exists */
1484  kENODEVErr = -3218, /* No such device */
1485  kEINVALErr = -3221, /* Invalid argument */
1486  kENOTTYErr = -3224, /* Not a character device */
1487  kEPIPEErr = -3231, /* Broken pipe */
1488  kERANGEErr = -3233, /* Message size too large for STREAM */
1489  kEWOULDBLOCKErr = -3234, /* Call would block, so was aborted */
1490  kEDEADLKErr = -3234, /* or a deadlock would occur */
1491  kEALREADYErr = -3236, /* */
1492  kENOTSOCKErr = -3237, /* Socket operation on non-socket */
1493  kEDESTADDRREQErr = -3238, /* Destination address required */
1494  kEMSGSIZEErr = -3239, /* Message too long */
1495  kEPROTOTYPEErr = -3240, /* Protocol wrong type for socket */
1496  kENOPROTOOPTErr = -3241, /* Protocol not available */
1497  kEPROTONOSUPPORTErr = -3242, /* Protocol not supported */
1498  kESOCKTNOSUPPORTErr = -3243, /* Socket type not supported */
1499  kEOPNOTSUPPErr = -3244, /* Operation not supported on socket */
1500  kEADDRINUSEErr = -3247, /* Address already in use */
1501  kEADDRNOTAVAILErr = -3248, /* Can't assign requested address */
1502  kENETDOWNErr = -3249, /* Network is down */
1503  kENETUNREACHErr = -3250, /* Network is unreachable */
1504  kENETRESETErr = -3251, /* Network dropped connection on reset */
1505  kECONNABORTEDErr = -3252, /* Software caused connection abort */
1506  kECONNRESETErr = -3253, /* Connection reset by peer */
1507  kENOBUFSErr = -3254, /* No buffer space available */
1508  kEISCONNErr = -3255, /* Socket is already connected */
1509  kENOTCONNErr = -3256, /* Socket is not connected */
1510  kESHUTDOWNErr = -3257, /* Can't send after socket shutdown */
1511  kETOOMANYREFSErr = -3258, /* Too many references: can't splice */
1512  kETIMEDOUTErr = -3259, /* Connection timed out */
1513  kECONNREFUSEDErr = -3260, /* Connection refused */
1514  kEHOSTDOWNErr = -3263, /* Host is down */
1515  kEHOSTUNREACHErr = -3264, /* No route to host */
1516  kEPROTOErr = -3269, /* ©©© fill out missing codes ©©© */
1517  kETIMEErr = -3270, /* */
1518  kENOSRErr = -3271, /* */
1519  kEBADMSGErr = -3272, /* */
1520  kECANCELErr = -3273, /* */
1521  kENOSTRErr = -3274, /* */
1522  kENODATAErr = -3275, /* */
1523  kEINPROGRESSErr = -3276, /* */
1524  kESRCHErr = -3277, /* */
1525  kENOMSGErr = -3278, /* */
1526  kOTClientNotInittedErr = -3279, /* */
1527  kOTPortHasDiedErr = -3280, /* */
1528  kOTPortWasEjectedErr = -3281, /* */
1529  kOTBadConfigurationErr = -3282, /* */
1530  kOTConfigurationChangedErr = -3283, /* */
1531  kOTUserRequestedErr = -3284, /* */
1532  kOTPortLostConnection = -3285 /* */
1533  };
1534 
1535  /* Color Picker errors*/
1536  enum
1537  {
1538  firstPickerError = -4000,
1539  invalidPickerType = firstPickerError,
1540  requiredFlagsDontMatch = -4001,
1541  pickerResourceError = -4002,
1542  cantLoadPicker = -4003,
1543  cantCreatePickerWindow = -4004,
1544  cantLoadPackage = -4005,
1545  pickerCantLive = -4006,
1546  colorSyncNotInstalled = -4007,
1547  badProfileError = -4008,
1548  noHelpForItem = -4009
1549  };
1550 
1551  /* NSL error codes*/
1552  enum
1553  {
1554  kNSL68kContextNotSupported = -4170, /* no 68k allowed*/
1555  kNSLSchedulerError = -4171, /* A custom thread routine encountered an error*/
1556  kNSLBadURLSyntax = -4172, /* URL contains illegal characters*/
1557  kNSLNoCarbonLib = -4173,
1558  kNSLUILibraryNotAvailable =
1559  -4174, /* The NSL UI Library needs to be in the Extensions Folder*/
1560  kNSLNotImplementedYet = -4175,
1561  kNSLErrNullPtrError = -4176,
1562  kNSLSomePluginsFailedToLoad =
1563  -4177, /* (one or more plugins failed to load, but at least one did load;
1564  this error isn't fatal)*/
1565  kNSLNullNeighborhoodPtr = -4178, /* (client passed a null neighborhood ptr)*/
1566  kNSLNoPluginsForSearch =
1567  -4179, /* (no plugins will respond to search request; bad protocol(s)?)*/
1568  kNSLSearchAlreadyInProgress =
1569  -4180, /* (you can only have one ongoing search per clientRef)*/
1570  kNSLNoPluginsFound =
1571  -4181, /* (manager didn't find any valid plugins to load)*/
1572  kNSLPluginLoadFailed = -4182, /* (manager unable to load one of the plugins)*/
1573  kNSLBadProtocolTypeErr =
1574  -4183, /* (client is trying to add a null protocol type)*/
1575  kNSLNullListPtr = -4184, /* (client is trying to add items to a nil list)*/
1576  kNSLBadClientInfoPtr =
1577  -4185, /* (nil ClientAsyncInfoPtr; no reference available)*/
1578  kNSLCannotContinueLookup =
1579  -4186, /* (Can't continue lookup; error or bad state)*/
1580  kNSLBufferTooSmallForData =
1581  -4187, /* (Client buffer too small for data from plugin)*/
1582  kNSLNoContextAvailable = -4188, /* (ContinueLookup function ptr invalid)*/
1583  kNSLRequestBufferAlreadyInList = -4189,
1584  kNSLInvalidPluginSpec = -4190,
1585  kNSLNoSupportForService = -4191,
1586  kNSLBadNetConnection = -4192,
1587  kNSLBadDataTypeErr = -4193,
1588  kNSLBadServiceTypeErr = -4194,
1589  kNSLBadReferenceErr = -4195,
1590  kNSLNoElementsInList = -4196,
1591  kNSLInsufficientOTVer = -4197,
1592  kNSLInsufficientSysVer = -4198,
1593  kNSLNotInitialized = -4199,
1594  kNSLInitializationFailed =
1595  -4200 /* UNABLE TO INITIALIZE THE MANAGER!!!!! DO NOT CONTINUE!!!!*/
1596  };
1597 
1598  /* desktop printing error codes*/
1599  enum
1600  {
1601  kDTPHoldJobErr = -4200,
1602  kDTPStopQueueErr = -4201,
1603  kDTPTryAgainErr = -4202,
1604  kDTPAbortJobErr = 128
1605  };
1606 
1607  /* ColorSync Result codes */
1608  enum
1609  {
1610  /* Profile Access Errors */
1611  cmElementTagNotFound = -4200,
1612  cmIndexRangeErr = -4201, /* Tag index out of range */
1613  cmCantDeleteElement = -4202,
1614  cmFatalProfileErr = -4203,
1615  cmInvalidProfile =
1616  -4204, /* A Profile must contain a 'cs1 ' tag to be valid */
1617  cmInvalidProfileLocation =
1618  -4205, /* Operation not supported for this profile location */
1619  cmCantCopyModifiedV1Profile =
1620  -4215, /* Illegal to copy version 1 profiles that have been modified */
1621  /* Profile Search Errors */
1622  cmInvalidSearch = -4206, /* Bad Search Handle */
1623  cmSearchError = -4207,
1624  cmErrIncompatibleProfile = -4208, /* Other ColorSync Errors */
1625  cmInvalidColorSpace =
1626  -4209, /* Profile colorspace does not match bitmap type */
1627  cmInvalidSrcMap = -4210, /* Source pix/bit map was invalid */
1628  cmInvalidDstMap = -4211, /* Destination pix/bit map was invalid */
1629  cmNoGDevicesError = -4212, /* Begin/End Matching -- no gdevices available */
1630  cmInvalidProfileComment = -4213, /* Bad Profile comment during drawpicture */
1631  cmRangeOverFlow = -4214, /* Color conversion warning that some output color
1632  values over/underflowed and were clipped */
1633  cmNamedColorNotFound = -4216, /* NamedColor not found */
1634  cmCantGamutCheckError =
1635  -4217 /* Gammut checking not supported by this ColorWorld */
1636  };
1637 
1638  /* new Folder Manager error codes */
1639  enum
1640  {
1641  badFolderDescErr = -4270,
1642  duplicateFolderDescErr = -4271,
1643  noMoreFolderDescErr = -4272,
1644  invalidFolderTypeErr = -4273,
1645  duplicateRoutingErr = -4274,
1646  routingNotFoundErr = -4275,
1647  badRoutingSizeErr = -4276
1648  };
1649 
1650  /* Core Foundation errors*/
1651  enum
1652  {
1653  coreFoundationUnknownErr = -4960
1654  };
1655 
1656  /* ScrapMgr error codes (CarbonLib 1.0 and later)*/
1657  enum
1658  {
1659  internalScrapErr = -4988,
1660  duplicateScrapFlavorErr = -4989,
1661  badScrapRefErr = -4990,
1662  processStateIncorrectErr = -4991,
1663  scrapPromiseNotKeptErr = -4992,
1664  noScrapPromiseKeeperErr = -4993,
1665  nilScrapFlavorDataErr = -4994,
1666  scrapFlavorFlagsMismatchErr = -4995,
1667  scrapFlavorSizeMismatchErr = -4996,
1668  illegalScrapFlavorFlagsErr = -4997,
1669  illegalScrapFlavorTypeErr = -4998,
1670  illegalScrapFlavorSizeErr = -4999,
1671  scrapFlavorNotFoundErr = -102, /* == noTypeErr*/
1672  needClearScrapErr = -100 /* == noScrapErr*/
1673  };
1674 
1675  enum
1676  {
1677  /* AFP Protocol Errors */
1678  afpAccessDenied = -5000, /* Insufficient access privileges for operation */
1679  afpAuthContinue =
1680  -5001, /* Further information required to complete AFPLogin call */
1681  afpBadUAM = -5002, /* Unknown user authentication method specified */
1682  afpBadVersNum = -5003, /* Unknown AFP protocol version number specified */
1683  afpBitmapErr = -5004, /* Bitmap contained bits undefined for call */
1684  afpCantMove = -5005, /* Move destination is offspring of source, or root was
1685  specified */
1686  afpDenyConflict =
1687  -5006, /* Specified open/deny modes conflict with current open modes */
1688  afpDirNotEmpty = -5007, /* Cannot delete non-empty directory */
1689  afpDiskFull = -5008, /* Insufficient free space on volume for operation */
1690  afpEofError = -5009, /* Read beyond logical end-of-file */
1691  afpFileBusy = -5010, /* Cannot delete an open file */
1692  afpFlatVol = -5011, /* Cannot create directory on specified volume */
1693  afpItemNotFound =
1694  -5012, /* Unknown UserName/UserID or missing comment/APPL entry */
1695  afpLockErr =
1696  -5013, /* Some or all of requested range is locked by another user */
1697  afpMiscErr = -5014, /* Unexpected error encountered during execution */
1698  afpNoMoreLocks = -5015, /* Maximum lock limit reached */
1699  afpNoServer = -5016, /* Server not responding */
1700  afpObjectExists =
1701  -5017, /* Specified destination file or directory already exists */
1702  afpObjectNotFound = -5018, /* Specified file or directory does not exist */
1703  afpParmErr = -5019, /* A specified parameter was out of allowable range */
1704  afpRangeNotLocked =
1705  -5020, /* Tried to unlock range that was not locked by user */
1706  afpRangeOverlap =
1707  -5021, /* Some or all of range already locked by same user */
1708  afpSessClosed = -5022, /* Session closed*/
1709  afpUserNotAuth =
1710  -5023, /* No AFPLogin call has successfully been made for this session */
1711  afpCallNotSupported = -5024, /* Unsupported AFP call was made */
1712  afpObjectTypeErr =
1713  -5025, /* File/Directory specified where Directory/File expected */
1714  afpTooManyFilesOpen = -5026, /* Maximum open file count reached */
1715  afpServerGoingDown = -5027, /* Server is shutting down */
1716  afpCantRename = -5028, /* AFPRename cannot rename volume */
1717  afpDirNotFound = -5029, /* Unknown directory specified */
1718  afpIconTypeError =
1719  -5030, /* Icon size specified different from existing icon size */
1720  afpVolLocked = -5031, /* Volume is Read-Only */
1721  afpObjectLocked = -5032, /* Object is M/R/D/W inhibited*/
1722  afpContainsSharedErr =
1723  -5033, /* the folder being shared contains a shared folder*/
1724  afpIDNotFound = -5034,
1725  afpIDExists = -5035,
1726  afpDiffVolErr = -5036,
1727  afpCatalogChanged = -5037,
1728  afpSameObjectErr = -5038,
1729  afpBadIDErr = -5039,
1730  afpPwdSameErr = -5040, /* Someone tried to change their password to the same
1731  password on a mantadory password change */
1732  afpPwdTooShortErr = -5041, /* The password being set is too short: there is a
1733  minimum length that must be met or exceeded */
1734  afpPwdExpiredErr =
1735  -5042, /* The password being used is too old: this requires the user to
1736  change the password before log-in can continue */
1737  afpInsideSharedErr = -5043, /* The folder being shared is inside a shared
1738  folder OR the folder contains a shared folder
1739  and is being moved into a shared folder */
1740  /* OR the folder contains a shared folder and is being moved into the
1741  descendent of a shared folder.*/
1742  afpInsideTrashErr =
1743  -5044, /* The folder being shared is inside the trash folder OR the shared
1744  folder is being moved into the trash folder */
1745  /* OR the folder is being moved to the trash and it contains a shared folder
1746  */
1747  afpPwdNeedsChangeErr = -5045, /* The password needs to be changed*/
1748  afpPwdPolicyErr =
1749  -5046, /* Password does not conform to servers password policy */
1750  afpAlreadyLoggedInErr =
1751  -5047, /* User has been authenticated but is already logged in from
1752  another machine (and that's not allowed on this server) */
1753  afpCallNotAllowed = -5048 /* The server knows what you wanted to do, but won't
1754  let you do it just now */
1755  };
1756 
1757  enum
1758  {
1759  /* AppleShare Client Errors */
1760  afpBadDirIDType = -5060,
1761  afpCantMountMoreSrvre =
1762  -5061, /* The Maximum number of server connections has been reached */
1763  afpAlreadyMounted = -5062, /* The volume is already mounted */
1764  afpSameNodeErr = -5063 /* An Attempt was made to connect to a file server
1765  running on the same machine */
1766  };
1767 
1768  /*Text Engines, TSystemTextEngines, HIEditText error coded*/
1769 
1770  enum
1771  {
1772  errUnknownAttributeTag = -5240,
1773  errMarginWilllNotFit = -5241,
1774  errNotInImagingMode = -5242,
1775  errAlreadyInImagingMode = -5243,
1776  errEngineNotFound = -5244,
1777  errIteratorReachedEnd = -5245,
1778  errInvalidRange = -5246,
1779  errOffsetNotOnElementBounday = -5247,
1780  errNoHiliteText = -5248,
1781  errEmptyScrap = -5249,
1782  errReadOnlyText = -5250,
1783  errUnknownElement = -5251,
1784  errNonContiuousAttribute = -5252,
1785  errCannotUndo = -5253
1786  };
1787 
1788  /* HTMLRendering OSStaus codes*/
1789  enum
1790  {
1791  hrHTMLRenderingLibNotInstalledErr = -5360,
1792  hrMiscellaneousExceptionErr = -5361,
1793  hrUnableToResizeHandleErr = -5362,
1794  hrURLNotHandledErr = -5363
1795  };
1796 
1797  /* IAExtractor result codes */
1798  enum
1799  {
1800  errIANoErr = 0,
1801  errIAUnknownErr = -5380,
1802  errIAAllocationErr = -5381,
1803  errIAParamErr = -5382,
1804  errIANoMoreItems = -5383,
1805  errIABufferTooSmall = -5384,
1806  errIACanceled = -5385,
1807  errIAInvalidDocument = -5386,
1808  errIATextExtractionErr = -5387,
1809  errIAEndOfTextRun = -5388
1810  };
1811 
1812  /* QuickTime Streaming Errors */
1813  enum
1814  {
1815  qtsBadSelectorErr = -5400,
1816  qtsBadStateErr = -5401,
1817  qtsBadDataErr = -5402, /* something is wrong with the data */
1818  qtsUnsupportedDataTypeErr = -5403,
1819  qtsUnsupportedRateErr = -5404,
1820  qtsUnsupportedFeatureErr = -5405,
1821  qtsTooMuchDataErr = -5406,
1822  qtsUnknownValueErr = -5407,
1823  qtsTimeoutErr = -5408,
1824  qtsConnectionFailedErr = -5420,
1825  qtsAddressBusyErr = -5421
1826  };
1827 
1828  enum
1829  {
1830  /*Gestalt error codes*/
1831  gestaltUnknownErr =
1832  -5550, /*value returned if Gestalt doesn't know the answer*/
1833  gestaltUndefSelectorErr = -5551, /*undefined selector was passed to Gestalt*/
1834  gestaltDupSelectorErr = -5552, /*tried to add an entry that already existed*/
1835  gestaltLocationErr = -5553 /*gestalt function ptr wasn't in sysheap*/
1836  };
1837 
1838  /* Menu Manager error codes*/
1839  enum
1840  {
1841  menuPropertyInvalidErr = -5603, /* invalid property creator */
1842  menuPropertyInvalid =
1843  menuPropertyInvalidErr, /* "menuPropertyInvalid" is deprecated */
1844  menuPropertyNotFoundErr = -5604, /* specified property wasn't found */
1845  menuNotFoundErr = -5620, /* specified menu or menu ID wasn't found */
1846  menuUsesSystemDefErr = -5621, /* GetMenuDefinition failed because the menu
1847  uses the system MDEF */
1848  menuItemNotFoundErr = -5622, /* specified menu item wasn't found*/
1849  menuInvalidErr = -5623 /* menu is invalid*/
1850  };
1851 
1852  /* Window Manager error codes*/
1853  enum
1854  {
1855  errInvalidWindowPtr = -5600, /* tried to pass a bad WindowRef argument*/
1856  errInvalidWindowRef = -5600, /* tried to pass a bad WindowRef argument*/
1857  errUnsupportedWindowAttributesForClass =
1858  -5601, /* tried to create a window with WindowAttributes not supported by
1859  the WindowClass*/
1860  errWindowDoesNotHaveProxy = -5602, /* tried to do something requiring a proxy
1861  to a window which doesn©t have a proxy*/
1862  errInvalidWindowProperty =
1863  -5603, /* tried to access a property tag with private creator*/
1864  errWindowPropertyNotFound = -5604, /* tried to get a nonexistent property*/
1865  errUnrecognizedWindowClass =
1866  -5605, /* tried to create a window with a bad WindowClass*/
1867  errCorruptWindowDescription =
1868  -5606, /* tried to load a corrupt window description (size or version
1869  fields incorrect)*/
1870  errUserWantsToDragWindow =
1871  -5607, /* if returned from TrackWindowProxyDrag, you should call
1872  DragWindow on the window*/
1873  errWindowsAlreadyInitialized =
1874  -5608, /* tried to call InitFloatingWindows twice, or called InitWindows
1875  and then floating windows*/
1876  errFloatingWindowsNotInitialized =
1877  -5609, /* called HideFloatingWindows or ShowFloatingWindows without
1878  calling InitFloatingWindows*/
1879  errWindowNotFound = -5610, /* returned from FindWindowOfClass*/
1880  errWindowDoesNotFitOnscreen =
1881  -5611, /* ConstrainWindowToScreen could not make the window fit onscreen*/
1882  windowAttributeImmutableErr =
1883  -5612, /* tried to change attributes which can't be changed*/
1884  windowAttributesConflictErr =
1885  -5613, /* passed some attributes that are mutually exclusive*/
1886  windowManagerInternalErr =
1887  -5614, /* something really weird happened inside the window manager*/
1888  windowWrongStateErr =
1889  -5615, /* window is not in a state that is valid for the current action*/
1890  windowGroupInvalidErr = -5616, /* WindowGroup is invalid*/
1891  windowAppModalStateAlreadyExistsErr =
1892  -5617, /* we're already running this window modally*/
1893  windowNoAppModalStateErr =
1894  -5618, /* there's no app modal state for the window*/
1895  errWindowDoesntSupportFocus = -30583,
1896  errWindowRegionCodeInvalid = -30593
1897  };
1898 
1899  /* Dialog Mgr error codes*/
1900  enum
1901  {
1902  dialogNoTimeoutErr = -5640
1903  };
1904 
1905  /* NavigationLib error codes*/
1906  enum
1907  {
1908  kNavWrongDialogStateErr = -5694,
1909  kNavWrongDialogClassErr = -5695,
1910  kNavInvalidSystemConfigErr = -5696,
1911  kNavCustomControlMessageFailedErr = -5697,
1912  kNavInvalidCustomControlMessageErr = -5698,
1913  kNavMissingKindStringErr = -5699
1914  };
1915 
1916  /* Collection Manager errors */
1917  enum
1918  {
1919  collectionItemLockedErr = -5750,
1920  collectionItemNotFoundErr = -5751,
1921  collectionIndexRangeErr = -5752,
1922  collectionVersionErr = -5753
1923  };
1924 
1925  /* QuickTime Streaming Server Errors */
1926  enum
1927  {
1928  kQTSSUnknownErr = -6150
1929  };
1930 
1931  enum
1932  {
1933  /* Display Manager error codes (-6220...-6269)*/
1934  kDMGenErr = -6220, /*Unexpected Error*/
1935  /* Mirroring-Specific Errors */
1936  kDMMirroringOnAlready = -6221, /*Returned by all calls that need mirroring to
1937  be off to do their thing.*/
1938  kDMWrongNumberOfDisplays = -6222, /*Can only handle 2 displays for now.*/
1939  kDMMirroringBlocked = -6223, /*DMBlockMirroring() has been called.*/
1940  kDMCantBlock = -6224, /*Mirroring is already on, can©t Block now (call
1941  DMUnMirror() first).*/
1942  kDMMirroringNotOn = -6225, /*Returned by all calls that need mirroring to be
1943  on to do their thing.*/
1944  /* Other Display Manager Errors */
1945  kSysSWTooOld = -6226, /*Missing critical pieces of System Software.*/
1946  kDMSWNotInitializedErr = -6227, /*Required software not initialized (eg
1947  windowmanager or display mgr).*/
1948  kDMDriverNotDisplayMgrAwareErr =
1949  -6228, /*Video Driver does not support display manager.*/
1950  kDMDisplayNotFoundErr = -6229, /*Could not find item (will someday remove).*/
1951  kDMNotFoundErr = -6229, /*Could not find item.*/
1952  kDMDisplayAlreadyInstalledErr =
1953  -6230, /*Attempt to add an already installed display.*/
1954  kDMMainDisplayCannotMoveErr =
1955  -6231, /*Trying to move main display (or a display mirrored to it) */
1956  kDMNoDeviceTableclothErr = -6231, /*obsolete*/
1957  kDMFoundErr = -6232 /*Did not proceed because we found an item*/
1958  };
1959 
1963  enum
1964  {
1965  laTooSmallBufferErr =
1966  -6984, /* output buffer is too small to store any result */
1967  laEnvironmentBusyErr = -6985, /* specified environment is used */
1968  laEnvironmentNotFoundErr = -6986, /* can't fint the specified environment */
1969  laEnvironmentExistErr = -6987, /* same name environment is already exists */
1970  laInvalidPathErr = -6988, /* path is not correct */
1971  laNoMoreMorphemeErr = -6989, /* nothing to read*/
1972  laFailAnalysisErr = -6990, /* analysis failed*/
1973  laTextOverFlowErr = -6991, /* text is too long*/
1974  laDictionaryNotOpenedErr = -6992, /* the dictionary is not opened*/
1975  laDictionaryUnknownErr =
1976  -6993, /* can't use this dictionary with this environment*/
1977  laDictionaryTooManyErr = -6994, /* too many dictionaries*/
1978  laPropertyValueErr = -6995, /* Invalid property value*/
1979  laPropertyUnknownErr = -6996, /* the property is unknown to this environment*/
1980  laPropertyIsReadOnlyErr = -6997, /* the property is read only*/
1981  laPropertyNotFoundErr = -6998, /* can't find the property*/
1982  laPropertyErr = -6999, /* Error in properties*/
1983  laEngineNotFoundErr = -7000 /* can't find the engine*/
1984  };
1985 
1986  enum
1987  {
1988  kUSBNoErr = 0,
1989  kUSBNoTran = 0,
1990  kUSBNoDelay = 0,
1991  kUSBPending = 1
1992  };
1993 
2007  enum
2008  {
2009  kUSBNotSent2Err = -6901, /* Transaction not sent */
2010  kUSBNotSent1Err = -6902, /* Transaction not sent */
2011  kUSBBufUnderRunErr =
2012  -6903, /* Host hardware failure on data out, PCI busy? */
2013  kUSBBufOvrRunErr = -6904, /* Host hardware failure on data in, PCI busy? */
2014  kUSBRes2Err = -6905,
2015  kUSBRes1Err = -6906,
2016  kUSBUnderRunErr = -6907, /* Less data than buffer */
2017  kUSBOverRunErr = -6908, /* Packet too large or more data than buffer */
2018  kUSBWrongPIDErr = -6909, /* Pipe stall, Bad or wrong PID */
2019  kUSBPIDCheckErr = -6910, /* Pipe stall, PID CRC error */
2020  kUSBNotRespondingErr = -6911, /* Pipe stall, No device, device hung */
2021  kUSBEndpointStallErr = -6912, /* Device didn't understand */
2022  kUSBDataToggleErr = -6913, /* Pipe stall, Bad data toggle */
2023  kUSBBitstufErr = -6914, /* Pipe stall, bitstuffing */
2024  kUSBCRCErr = -6915, /* Pipe stall, bad CRC */
2025  kUSBLinkErr = -6916
2026  };
2027 
2032  enum
2033  {
2034  kUSBQueueFull = -6948, /* Internal queue maxxed */
2035  kUSBNotHandled = -6987, /* Notification was not handled (same as NotFound)*/
2036  kUSBUnknownNotification = -6949, /* Notification type not defined */
2037  kUSBBadDispatchTable = -6950 /* Improper driver dispatch table */
2038  };
2039 
2040  /* USB Services Errors */
2041  enum
2042  {
2043  kUSBPortDisabled =
2044  -6969, /* The port you are attached to is disabled, use USBDeviceReset.*/
2045  kUSBQueueAborted = -6970, /* Pipe zero stall cleared.*/
2046  kUSBTimedOut = -6971, /* Transaction timed out. */
2047  kUSBDeviceDisconnected = -6972, /* Disconnected during suspend or reset */
2048  kUSBDeviceNotSuspended = -6973, /* device is not suspended for resume */
2049  kUSBDeviceSuspended = -6974, /* Device is suspended */
2050  kUSBInvalidBuffer = -6975, /* bad buffer, usually nil */
2051  kUSBDevicePowerProblem = -6976, /* Device has a power problem */
2052  kUSBDeviceBusy = -6977, /* Device is already being configured */
2053  kUSBUnknownInterfaceErr = -6978, /* Interface ref not recognised */
2054  kUSBPipeStalledError =
2055  -6979, /* Pipe has stalled, error needs to be cleared */
2056  kUSBPipeIdleError =
2057  -6980, /* Pipe is Idle, it will not accept transactions */
2058  kUSBNoBandwidthError = -6981, /* Not enough bandwidth available */
2059  kUSBAbortedError = -6982, /* Pipe aborted */
2060  kUSBFlagsError = -6983, /* Unused flags not zeroed */
2061  kUSBCompletionError = -6984, /* no completion routine specified */
2062  kUSBPBLengthError = -6985, /* pbLength too small */
2063  kUSBPBVersionError = -6986, /* Wrong pbVersion */
2064  kUSBNotFound = -6987, /* Not found */
2065  kUSBOutOfMemoryErr = -6988, /* Out of memory */
2066  kUSBDeviceErr = -6989, /* Device error */
2067  kUSBNoDeviceErr = -6990, /* No device*/
2068  kUSBAlreadyOpenErr = -6991, /* Already open */
2069  kUSBTooManyTransactionsErr = -6992, /* Too many transactions */
2070  kUSBUnknownRequestErr = -6993, /* Unknown request */
2071  kUSBRqErr = -6994, /* Request error */
2072  kUSBIncorrectTypeErr = -6995, /* Incorrect type */
2073  kUSBTooManyPipesErr = -6996, /* Too many pipes */
2074  kUSBUnknownPipeErr = -6997, /* Pipe ref not recognised */
2075  kUSBUnknownDeviceErr = -6998, /* device ref not recognised */
2076  kUSBInternalErr = -6999 /* Internal error */
2077  };
2078 
2082  enum
2083  {
2084  dcmParamErr = -7100, /* bad parameter*/
2085  dcmNotDictionaryErr = -7101, /* not dictionary*/
2086  dcmBadDictionaryErr = -7102, /* invalid dictionary*/
2087  dcmPermissionErr = -7103, /* invalid permission*/
2088  dcmDictionaryNotOpenErr = -7104, /* dictionary not opened*/
2089  dcmDictionaryBusyErr = -7105, /* dictionary is busy*/
2090  dcmBlockFullErr = -7107, /* dictionary block full*/
2091  dcmNoRecordErr = -7108, /* no such record*/
2092  dcmDupRecordErr = -7109, /* same record already exist*/
2093  dcmNecessaryFieldErr = -7110, /* lack required/identify field*/
2094  dcmBadFieldInfoErr = -7111, /* incomplete information*/
2095  dcmBadFieldTypeErr = -7112, /* no such field type supported*/
2096  dcmNoFieldErr = -7113, /* no such field exist*/
2097  dcmBadKeyErr = -7115, /* bad key information*/
2098  dcmTooManyKeyErr = -7116, /* too many key field*/
2099  dcmBadDataSizeErr = -7117, /* too big data size*/
2100  dcmBadFindMethodErr = -7118, /* no such find method supported*/
2101  dcmBadPropertyErr = -7119, /* no such property exist*/
2102  dcmProtectedErr = -7121, /* need keyword to use dictionary*/
2103  dcmNoAccessMethodErr = -7122, /* no such AccessMethod*/
2104  dcmBadFeatureErr = -7124, /* invalid AccessMethod feature*/
2105  dcmIterationCompleteErr = -7126, /* no more item in iterator*/
2106  dcmBufferOverflowErr = -7127 /* data is larger than buffer size*/
2107  };
2108 
2109  /* Apple Remote Access error codes*/
2110  enum
2111  {
2112  kRAInvalidParameter = -7100,
2113  kRAInvalidPort = -7101,
2114  kRAStartupFailed = -7102,
2115  kRAPortSetupFailed = -7103,
2116  kRAOutOfMemory = -7104,
2117  kRANotSupported = -7105,
2118  kRAMissingResources = -7106,
2119  kRAIncompatiblePrefs = -7107,
2120  kRANotConnected = -7108,
2121  kRAConnectionCanceled = -7109,
2122  kRAUnknownUser = -7110,
2123  kRAInvalidPassword = -7111,
2124  kRAInternalError = -7112,
2125  kRAInstallationDamaged = -7113,
2126  kRAPortBusy = -7114,
2127  kRAUnknownPortState = -7115,
2128  kRAInvalidPortState = -7116,
2129  kRAInvalidSerialProtocol = -7117,
2130  kRAUserLoginDisabled = -7118,
2131  kRAUserPwdChangeRequired = -7119,
2132  kRAUserPwdEntryRequired = -7120,
2133  kRAUserInteractionRequired = -7121,
2134  kRAInitOpenTransportFailed = -7122,
2135  kRARemoteAccessNotReady = -7123,
2136  kRATCPIPInactive = -7124, /* TCP/IP inactive, cannot be loaded*/
2137  kRATCPIPNotConfigured = -7125, /* TCP/IP not configured, could be loaded*/
2138  kRANotPrimaryInterface = -7126, /* when IPCP is not primary TCP/IP intf.*/
2139  kRAConfigurationDBInitErr = -7127,
2140  kRAPPPProtocolRejected = -7128,
2141  kRAPPPAuthenticationFailed = -7129,
2142  kRAPPPNegotiationFailed = -7130,
2143  kRAPPPUserDisconnected = -7131,
2144  kRAPPPPeerDisconnected = -7132,
2145  kRAPeerNotResponding = -7133,
2146  kRAATalkInactive = -7134,
2147  kRAExtAuthenticationFailed = -7135,
2148  kRANCPRejectedbyPeer = -7136,
2149  kRADuplicateIPAddr = -7137,
2150  kRACallBackFailed = -7138,
2151  kRANotEnabled = -7139
2152  };
2153 
2154  /* ATSUnicode error codes*/
2155  enum
2156  {
2157  kATSUInvalidTextLayoutErr =
2158  -8790, /* An attempt was made to use a ATSUTextLayout */
2159  /* which hadn't been initialized or is otherwise */
2160  /* in an invalid state. */
2161  kATSUInvalidStyleErr =
2162  -8791, /* An attempt was made to use a ATSUStyle which */
2163  /* hadn't been properly allocated or is otherwise */
2164  /* in an invalid state. */
2165  kATSUInvalidTextRangeErr =
2166  -8792, /* An attempt was made to extract information */
2167  /* from or perform an operation on a ATSUTextLayout */
2168  /* for a range of text not covered by the ATSUTextLayout. */
2169  kATSUFontsMatched =
2170  -8793, /* This is not an error code but is returned by */
2171  /* ATSUMatchFontsToText() when changes need to */
2172  /* be made to the fonts associated with the text. */
2173  kATSUFontsNotMatched =
2174  -8794, /* This value is returned by ATSUMatchFontsToText() */
2175  /* when the text contains Unicode characters which */
2176  /* cannot be represented by any installed font. */
2177  kATSUNoCorrespondingFontErr =
2178  -8795, /* This value is retrned by font ID conversion */
2179  /* routines ATSUFONDtoFontID() and ATSUFontIDtoFOND() */
2180  /* to indicate that the input font ID is valid but */
2181  /* there is no conversion possible. For example, */
2182  /* data-fork fonts can only be used with ATSUI not */
2183  /* the FontManager, and so converting an ATSUIFontID */
2184  /* for such a font will fail. */
2185  kATSUInvalidFontErr =
2186  -8796, /* Used when an attempt was made to use an invalid font ID.*/
2187  kATSUInvalidAttributeValueErr =
2188  -8797, /* Used when an attempt was made to use an attribute with */
2189  /* a bad or undefined value. */
2190  kATSUInvalidAttributeSizeErr =
2191  -8798, /* Used when an attempt was made to use an attribute with a */
2192  /* bad size. */
2193  kATSUInvalidAttributeTagErr =
2194  -8799, /* Used when an attempt was made to use a tag value that*/
2195  /* was not appropriate for the function call it was used. */
2196  kATSUInvalidCacheErr =
2197  -8800, /* Used when an attempt was made to read in style data */
2198  /* from an invalid cache. Either the format of the */
2199  /* cached data doesn't match that used by Apple Type */
2200  /* Services for Unicode© Imaging, or the cached data */
2201  /* is corrupt. */
2202  kATSUNotSetErr =
2203  -8801, /* Used when the client attempts to retrieve an attribute, */
2204  /* font feature, or font variation from a style when it */
2205  /* hadn't been set. In such a case, the default value will*/
2206  /* be returned for the attribute's value.*/
2207  kATSUNoStyleRunsAssignedErr =
2208  -8802, /* Used when an attempt was made to measure, highlight or draw*/
2209  /* a ATSUTextLayout object that has no styleRuns associated with it.*/
2210  kATSUQuickDrawTextErr = -8803, /* Used when QuickDraw Text encounters an
2211  error rendering or measuring*/
2212  /* a line of ATSUI text.*/
2213  kATSULowLevelErr = -8804, /* Used when an error was encountered within the
2214  low level ATS */
2215  /* mechanism performing an operation requested by ATSUI.*/
2216  kATSUNoFontCmapAvailableErr = -8805, /* Used when no CMAP table can be
2217  accessed or synthesized for the */
2218  /* font passed into a SetAttributes Font call.*/
2219  kATSUNoFontScalerAvailableErr =
2220  -8806, /* Used when no font scaler is available for the font passed*/
2221  /* into a SetAttributes Font call.*/
2222  kATSUCoordinateOverflowErr = -8807, /* Used to indicate the coordinates
2223  provided to an ATSUI routine caused*/
2224  /* a coordinate overflow (i.e. > 32K).*/
2225  kATSULineBreakInWord = -8808, /* This is not an error code but is returned
2226  by ATSUBreakLine to */
2227  /* indicate that the returned offset is within a word since there was*/
2228  /* only less than one word that could fit the requested width.*/
2229  kATSUBusyObjectErr =
2230  -8809, /* An ATSUI object is being used by another thread */
2231  kATSUInvalidFontFallbacksErr =
2232  -8810, /* An attempt was made to use a ATSUFontFallbacks */
2233  /* which hadn't been initialized or is otherwise */
2234  /* in an invalid state. */
2235  kATSULastErr = -8811 /* The last ATSUI error code.*/
2236  };
2237 
2238  /* Error & status codes for general text and text encoding conversion*/
2239 
2240  enum
2241  {
2242  /* general text errors*/
2243  kTextUnsupportedEncodingErr =
2244  -8738, /* specified encoding not supported for this operation*/
2245  kTextMalformedInputErr =
2246  -8739, /* in DBCS, for example, high byte followed by invalid low byte*/
2247  kTextUndefinedElementErr = -8740, /* text conversion errors*/
2248  kTECMissingTableErr = -8745,
2249  kTECTableChecksumErr = -8746,
2250  kTECTableFormatErr = -8747,
2251  kTECCorruptConverterErr = -8748, /* invalid converter object reference*/
2252  kTECNoConversionPathErr = -8749,
2253  kTECBufferBelowMinimumSizeErr =
2254  -8750, /* output buffer too small to allow processing of first input text
2255  element*/
2256  kTECArrayFullErr = -8751, /* supplied name buffer or TextRun, TextEncoding, or
2257  UnicodeMapping array is too small*/
2258  kTECBadTextRunErr = -8752,
2259  kTECPartialCharErr = -8753, /* input buffer ends in the middle of a multibyte
2260  character, conversion stopped*/
2261  kTECUnmappableElementErr = -8754,
2262  kTECIncompleteElementErr = -8755, /* text element may be incomplete or is too
2263  long for internal buffers*/
2264  kTECDirectionErr = -8756, /* direction stack overflow, etc.*/
2265  kTECGlobalsUnavailableErr =
2266  -8770, /* globals have already been deallocated (premature TERM)*/
2267  kTECItemUnavailableErr = -8771, /* item (e.g. name) not available for
2268  specified region (& encoding if relevant)*/
2269  /* text conversion status codes*/
2270  kTECUsedFallbacksStatus = -8783,
2271  kTECNeedFlushStatus = -8784,
2272  kTECOutputBufferFullStatus =
2273  -8785, /* output buffer has no room for conversion of next input text
2274  element (partial conversion)*/
2275  /* deprecated error & status codes for low-level converter*/
2276  unicodeChecksumErr = -8769,
2277  unicodeNoTableErr = -8768,
2278  unicodeVariantErr = -8767,
2279  unicodeFallbacksErr = -8766,
2280  unicodePartConvertErr = -8765,
2281  unicodeBufErr = -8764,
2282  unicodeCharErr = -8763,
2283  unicodeElementErr = -8762,
2284  unicodeNotFoundErr = -8761,
2285  unicodeTableFormatErr = -8760,
2286  unicodeDirectionErr = -8759,
2287  unicodeContextualErr = -8758,
2288  unicodeTextEncodingDataErr = -8757
2289  };
2290 
2291  /* UTCUtils Status Codes */
2292  enum
2293  {
2294  kUTCUnderflowErr = -8850,
2295  kUTCOverflowErr = -8851,
2296  kIllegalClockValueErr = -8852
2297  };
2298 
2299  enum
2300  {
2301  codecErr = -8960,
2302  noCodecErr = -8961,
2303  codecUnimpErr = -8962,
2304  codecSizeErr = -8963,
2305  codecScreenBufErr = -8964,
2306  codecImageBufErr = -8965,
2307  codecSpoolErr = -8966,
2308  codecAbortErr = -8967,
2309  codecWouldOffscreenErr = -8968,
2310  codecBadDataErr = -8969,
2311  codecDataVersErr = -8970,
2312  codecExtensionNotFoundErr = -8971,
2313  scTypeNotFoundErr = codecExtensionNotFoundErr,
2314  codecConditionErr = -8972,
2315  codecOpenErr = -8973,
2316  codecCantWhenErr = -8974,
2317  codecCantQueueErr = -8975,
2318  codecNothingToBlitErr = -8976,
2319  codecNoMemoryPleaseWaitErr = -8977,
2320  codecDisabledErr =
2321  -8978, /* codec disabled itself -- pass codecFlagReenable to reset*/
2322  codecNeedToFlushChainErr = -8979,
2323  lockPortBitsBadSurfaceErr = -8980,
2324  lockPortBitsWindowMovedErr = -8981,
2325  lockPortBitsWindowResizedErr = -8982,
2326  lockPortBitsWindowClippedErr = -8983,
2327  lockPortBitsBadPortErr = -8984,
2328  lockPortBitsSurfaceLostErr = -8985,
2329  codecParameterDialogConfirm = -8986,
2330  codecNeedAccessKeyErr =
2331  -8987, /* codec needs password in order to decompress*/
2332  codecOffscreenFailedErr = -8988,
2333  codecDroppedFrameErr = -8989, /* returned from ImageCodecDrawBand */
2334  directXObjectAlreadyExists = -8990,
2335  lockPortBitsWrongGDeviceErr = -8991,
2336  codecOffscreenFailedPleaseRetryErr = -8992
2337  };
2338 
2339  /* PCCard error codes */
2340  enum
2341  {
2342  kBadAdapterErr = -9050, /* invalid adapter number*/
2343  kBadAttributeErr = -9051, /* specified attributes field value is invalid*/
2344  kBadBaseErr = -9052, /* specified base system memory address is invalid*/
2345  kBadEDCErr = -9053, /* specified EDC generator specified is invalid*/
2346  kBadIRQErr = -9054, /* specified IRQ level is invalid*/
2347  kBadOffsetErr = -9055, /* specified PC card memory array offset is invalid*/
2348  kBadPageErr = -9056, /* specified page is invalid*/
2349  kBadSizeErr = -9057, /* specified size is invalid*/
2350  kBadSocketErr =
2351  -9058, /* specified logical or physical socket number is invalid*/
2352  kBadTypeErr = -9059, /* specified window or interface type is invalid*/
2353  kBadVccErr = -9060, /* specified Vcc power level index is invalid*/
2354  kBadVppErr = -9061, /* specified Vpp1 or Vpp2 power level index is invalid*/
2355  kBadWindowErr = -9062, /* specified window is invalid*/
2356  kBadArgLengthErr = -9063, /* ArgLength argument is invalid*/
2357  kBadArgsErr = -9064, /* values in argument packet are invalid*/
2358  kBadHandleErr = -9065, /* clientHandle is invalid*/
2359  kBadCISErr = -9066, /* CIS on card is invalid*/
2360  kBadSpeedErr = -9067, /* specified speed is unavailable*/
2361  kReadFailureErr = -9068, /* unable to complete read request*/
2362  kWriteFailureErr = -9069, /* unable to complete write request*/
2363  kGeneralFailureErr = -9070, /* an undefined error has occurred*/
2364  kNoCardErr = -9071, /* no PC card in the socket*/
2365  kUnsupportedFunctionErr =
2366  -9072, /* function is not supported by this implementation*/
2367  kUnsupportedModeErr = -9073, /* mode is not supported*/
2368  kBusyErr = -9074, /* unable to process request at this time - try later*/
2369  kWriteProtectedErr = -9075, /* media is write-protected*/
2370  kConfigurationLockedErr = -9076, /* a configuration has already been locked*/
2371  kInUseErr = -9077, /* requested resource is being used by a client*/
2372  kNoMoreItemsErr = -9078, /* there are no more of the requested item*/
2373  kOutOfResourceErr = -9079, /* Card Services has exhausted the resource*/
2374  kNoCardSevicesSocketsErr = -9080,
2375  kInvalidRegEntryErr = -9081,
2376  kBadLinkErr = -9082,
2377  kBadDeviceErr = -9083,
2378  k16BitCardErr = -9084,
2379  kCardBusCardErr = -9085,
2380  kPassCallToChainErr = -9086,
2381  kCantConfigureCardErr = -9087,
2382  kPostCardEventErr =
2383  -9088, /* _PCCSLPostCardEvent failed and dropped an event */
2384  kInvalidDeviceNumber = -9089,
2385  kUnsupportedVsErr = -9090, /* Unsupported Voltage Sense */
2386  kInvalidCSClientErr = -9091, /* Card Services ClientID is not registered */
2387  kBadTupleDataErr = -9092, /* Data in tuple is invalid */
2388  kBadCustomIFIDErr = -9093, /* Custom interface ID is invalid */
2389  kNoIOWindowRequestedErr =
2390  -9094, /* Request I/O window before calling configuration */
2391  kNoMoreTimerClientsErr = -9095, /* All timer callbacks are in use */
2392  kNoMoreInterruptSlotsErr =
2393  -9096, /* All internal Interrupt slots are in use */
2394  kNoClientTableErr = -9097, /* The client table has not be initialized yet */
2395  kUnsupportedCardErr = -9098, /* Card not supported by generic enabler*/
2396  kNoCardEnablersFoundErr = -9099, /* No Enablers were found*/
2397  kNoEnablerForCardErr =
2398  -9100, /* No Enablers were found that can support the card*/
2399  kNoCompatibleNameErr =
2400  -9101, /* There is no compatible driver name for this device*/
2401  kClientRequestDenied =
2402  -9102, /* CS Clients should return this code inorder to */
2403  /* deny a request-type CS Event */
2404  kNotReadyErr = -9103, /* PC Card failed to go ready */
2405  kTooManyIOWindowsErr = -9104, /* device requested more than one I/O window */
2406  kAlreadySavedStateErr = -9105, /* The state has been saved on previous call */
2407  kAttemptDupCardEntryErr =
2408  -9106, /* The Enabler was asked to create a duplicate card entry */
2409  kCardPowerOffErr = -9107, /* Power to the card has been turned off */
2410  kNotZVCapableErr = -9108, /* This socket does not support Zoomed Video */
2411  kNoCardBusCISErr = -9109 /* No valid CIS exists for this CardBus card */
2412  };
2413 
2414  enum
2415  {
2416  noDeviceForChannel = -9400,
2417  grabTimeComplete = -9401,
2418  cantDoThatInCurrentMode = -9402,
2419  notEnoughMemoryToGrab = -9403,
2420  notEnoughDiskSpaceToGrab = -9404,
2421  couldntGetRequiredComponent = -9405,
2422  badSGChannel = -9406,
2423  seqGrabInfoNotAvailable = -9407,
2424  deviceCantMeetRequest = -9408,
2425  badControllerHeight = -9994,
2426  editingNotAllowed = -9995,
2427  controllerBoundsNotExact = -9996,
2428  cannotSetWidthOfAttachedController = -9997,
2429  controllerHasFixedHeight = -9998,
2430  cannotMoveAttachedController = -9999
2431  };
2432 
2433  /* AERegistry Errors */
2434  enum
2435  {
2436  errAEBadKeyForm = -10002,
2437  errAECantHandleClass = -10010,
2438  errAECantSupplyType = -10009,
2439  errAECantUndo = -10015,
2440  errAEEventFailed = -10000,
2441  errAEIndexTooLarge = -10007,
2442  errAEInTransaction = -10011,
2443  errAELocalOnly = -10016,
2444  errAENoSuchTransaction = -10012,
2445  errAENotAnElement = -10008,
2446  errAENotASingleObject = -10014,
2447  errAENotModifiable = -10003,
2448  errAENoUserSelection = -10013,
2449  errAEPrivilegeError = -10004,
2450  errAEReadDenied = -10005,
2451  errAETypeError = -10001,
2452  errAEWriteDenied = -10006,
2453  errAENotAnEnumMember =
2454  -10023, /* enumerated value in SetData is not allowed for this property */
2455  errAECantPutThatThere = -10024, /* in make new, duplicate, etc. class can't be
2456  an element of container */
2457  errAEPropertiesClash = -10025 /* illegal combination of properties settings
2458  for Set Data, make new, or duplicate */
2459  };
2460 
2461  /* TELErr */
2462  enum
2463  {
2464  telGenericError = -1,
2465  telNoErr = 0,
2466  telNoTools = 8, /* no telephone tools found in extension folder */
2467  telBadTermErr = -10001, /* invalid TELHandle or handle not found*/
2468  telBadDNErr = -10002, /* TELDNHandle not found or invalid */
2469  telBadCAErr = -10003, /* TELCAHandle not found or invalid */
2470  telBadHandErr = -10004, /* bad handle specified */
2471  telBadProcErr = -10005, /* bad msgProc specified */
2472  telCAUnavail = -10006, /* a CA is not available */
2473  telNoMemErr = -10007, /* no memory to allocate handle */
2474  telNoOpenErr = -10008, /* unable to open terminal */
2475  telBadHTypeErr = -10010, /* bad hook type specified */
2476  telHTypeNotSupp = -10011, /* hook type not supported by this tool */
2477  telBadLevelErr = -10012, /* bad volume level setting */
2478  telBadVTypeErr = -10013, /* bad volume type error */
2479  telVTypeNotSupp = -10014, /* volume type not supported by this tool*/
2480  telBadAPattErr = -10015, /* bad alerting pattern specified */
2481  telAPattNotSupp = -10016, /* alerting pattern not supported by tool*/
2482  telBadIndex = -10017, /* bad index specified */
2483  telIndexNotSupp = -10018, /* index not supported by this tool */
2484  telBadStateErr = -10019, /* bad device state specified */
2485  telStateNotSupp = -10020, /* device state not supported by tool */
2486  telBadIntExt = -10021, /* bad internal external error */
2487  telIntExtNotSupp =
2488  -10022, /* internal external type not supported by this tool */
2489  telBadDNDType = -10023, /* bad DND type specified */
2490  telDNDTypeNotSupp = -10024, /* DND type is not supported by this tool */
2491  telFeatNotSub = -10030, /* feature not subscribed */
2492  telFeatNotAvail = -10031, /* feature subscribed but not available */
2493  telFeatActive = -10032, /* feature already active */
2494  telFeatNotSupp = -10033, /* feature program call not supported by this tool */
2495  telConfLimitErr =
2496  -10040, /* limit specified is too high for this configuration */
2497  telConfNoLimit = -10041, /* no limit was specified but required*/
2498  telConfErr = -10042, /* conference was not prepared */
2499  telConfRej = -10043, /* conference request was rejected */
2500  telTransferErr = -10044, /* transfer not prepared */
2501  telTransferRej = -10045, /* transfer request rejected */
2502  telCBErr = -10046, /* call back feature not set previously */
2503  telConfLimitExceeded =
2504  -10047, /* attempt to exceed switch conference limits */
2505  telBadDNType = -10050, /* DN type invalid */
2506  telBadPageID = -10051, /* bad page ID specified*/
2507  telBadIntercomID = -10052, /* bad intercom ID specified */
2508  telBadFeatureID = -10053, /* bad feature ID specified */
2509  telBadFwdType = -10054, /* bad fwdType specified */
2510  telBadPickupGroupID = -10055, /* bad pickup group ID specified */
2511  telBadParkID = -10056, /* bad park id specified */
2512  telBadSelect = -10057, /* unable to select or deselect DN */
2513  telBadBearerType = -10058, /* bad bearerType specified */
2514  telBadRate = -10059, /* bad rate specified */
2515  telDNTypeNotSupp = -10060, /* DN type not supported by tool */
2516  telFwdTypeNotSupp = -10061, /* forward type not supported by tool */
2517  telBadDisplayMode = -10062, /* bad display mode specified */
2518  telDisplayModeNotSupp = -10063, /* display mode not supported by tool */
2519  telNoCallbackRef =
2520  -10064, /* no call back reference was specified, but is required */
2521  telAlreadyOpen = -10070, /* terminal already open */
2522  telStillNeeded = -10071, /* terminal driver still needed by someone else */
2523  telTermNotOpen = -10072, /* terminal not opened via TELOpenTerm */
2524  telCANotAcceptable = -10080, /* CA not "acceptable" */
2525  telCANotRejectable = -10081, /* CA not "rejectable" */
2526  telCANotDeflectable = -10082, /* CA not "deflectable" */
2527  telPBErr = -10090, /* parameter block error, bad format */
2528  telBadFunction = -10091, /* bad msgCode specified */
2529  /* telNoTools = -10101, unable to find any telephone tools */
2530  telNoSuchTool = -10102, /* unable to find tool with name specified */
2531  telUnknownErr = -10103, /* unable to set config */
2532  telNoCommFolder = -10106, /* Communications/Extensions © not found */
2533  telInitFailed = -10107, /* initialization failed */
2534  telBadCodeResource = -10108, /* code resource not found */
2535  telDeviceNotFound = -10109, /* device not found */
2536  telBadProcID = -10110, /* invalid procID */
2537  telValidateFailed = -10111, /* telValidate failed */
2538  telAutoAnsNotOn = -10112, /* autoAnswer in not turned on */
2539  telDetAlreadyOn = -10113, /* detection is already turned on */
2540  telBadSWErr = -10114, /* Software not installed properly */
2541  telBadSampleRate = -10115, /* incompatible sample rate */
2542  telNotEnoughdspBW = -10116 /* not enough real-time for allocation */
2543  };
2544 
2545  enum
2546  {
2547  errTaskNotFound = -10780 /* no task with that task id exists */
2548  };
2549 
2550  /* Video driver Errorrs -10930 to -10959 */
2551  /* Defined in video.h. */
2552 
2553  enum
2554  {
2555  /*Power Manager Errors*/
2556  pmBusyErr = -13000, /*Power Mgr never ready to start handshake*/
2557  pmReplyTOErr = -13001, /*Timed out waiting for reply*/
2558  pmSendStartErr = -13002, /*during send, pmgr did not start hs*/
2559  pmSendEndErr = -13003, /*during send, pmgr did not finish hs*/
2560  pmRecvStartErr = -13004, /*during receive, pmgr did not start hs*/
2561  pmRecvEndErr = -13005 /*during receive, pmgr did not finish hs configured for
2562  this connection*/
2563  };
2564 
2565  /*Power Manager 2.0 Errors*/
2566  enum
2567  {
2568  kPowerHandlerExistsForDeviceErr = -13006,
2569  kPowerHandlerNotFoundForDeviceErr = -13007,
2570  kPowerHandlerNotFoundForProcErr = -13008,
2571  kPowerMgtMessageNotHandled = -13009,
2572  kPowerMgtRequestDenied = -13010,
2573  kCantReportProcessorTemperatureErr = -13013,
2574  kProcessorTempRoutineRequiresMPLib2 = -13014,
2575  kNoSuchPowerSource = -13020,
2576  kBridgeSoftwareRunningCantSleep = -13038
2577  };
2578 
2579  /* Debugging library errors */
2580  enum
2581  {
2582  debuggingExecutionContextErr =
2583  -13880, /* routine cannot be called at this time */
2584  debuggingDuplicateSignatureErr =
2585  -13881, /* componentSignature already registered */
2586  debuggingDuplicateOptionErr =
2587  -13882, /* optionSelectorNum already registered */
2588  debuggingInvalidSignatureErr = -13883, /* componentSignature not registered */
2589  debuggingInvalidOptionErr = -13884, /* optionSelectorNum is not registered */
2590  debuggingInvalidNameErr =
2591  -13885, /* componentName or optionName is invalid (NULL) */
2592  debuggingNoCallbackErr = -13886, /* debugging component has no callback */
2593  debuggingNoMatchErr =
2594  -13887 /* debugging component or option not found at this index */
2595  };
2596 
2597  /* HID device driver error codes */
2598  enum
2599  {
2600  kHIDVersionIncompatibleErr = -13909,
2601  kHIDDeviceNotReady =
2602  -13910 /* The device is still initializing, try again later*/
2603  };
2604 
2605  /* HID error codes */
2606  enum
2607  {
2608  kHIDSuccess = 0,
2609  kHIDInvalidRangePageErr = -13923,
2610  kHIDReportIDZeroErr = -13924,
2611  kHIDReportCountZeroErr = -13925,
2612  kHIDReportSizeZeroErr = -13926,
2613  kHIDUnmatchedDesignatorRangeErr = -13927,
2614  kHIDUnmatchedStringRangeErr = -13928,
2615  kHIDInvertedUsageRangeErr = -13929,
2616  kHIDUnmatchedUsageRangeErr = -13930,
2617  kHIDInvertedPhysicalRangeErr = -13931,
2618  kHIDInvertedLogicalRangeErr = -13932,
2619  kHIDBadLogicalMaximumErr = -13933,
2620  kHIDBadLogicalMinimumErr = -13934,
2621  kHIDUsagePageZeroErr = -13935,
2622  kHIDEndOfDescriptorErr = -13936,
2623  kHIDNotEnoughMemoryErr = -13937,
2624  kHIDBadParameterErr = -13938,
2625  kHIDNullPointerErr = -13939,
2626  kHIDInvalidReportLengthErr = -13940,
2627  kHIDInvalidReportTypeErr = -13941,
2628  kHIDBadLogPhysValuesErr = -13942,
2629  kHIDIncompatibleReportErr = -13943,
2630  kHIDInvalidPreparsedDataErr = -13944,
2631  kHIDNotValueArrayErr = -13945,
2632  kHIDUsageNotFoundErr = -13946,
2633  kHIDValueOutOfRangeErr = -13947,
2634  kHIDBufferTooSmallErr = -13948,
2635  kHIDNullStateErr = -13949,
2636  kHIDBaseError = -13950
2637  };
2638 
2639  /* the OT modem module may return the following error codes:*/
2640  enum
2641  {
2642  kModemOutOfMemory = -14000,
2643  kModemPreferencesMissing = -14001,
2644  kModemScriptMissing = -14002
2645  };
2646 
2647  /* MacTextEditor error codes */
2648  enum
2649  {
2650  kTXNEndIterationErr = -22000,
2651  kTXNCannotAddFrameErr = -22001,
2652  kTXNInvalidFrameIDErr = -22002,
2653  kTXNIllegalToCrossDataBoundariesErr = -22003,
2654  kTXNUserCanceledOperationErr = -22004,
2655  kTXNBadDefaultFileTypeWarning = -22005,
2656  kTXNCannotSetAutoIndentErr = -22006,
2657  kTXNRunIndexOutofBoundsErr = -22007,
2658  kTXNNoMatchErr = -22008,
2659  kTXNAttributeTagInvalidForRunErr =
2660  -22009, /*dataValue is set to this per invalid tag*/
2661  kTXNSomeOrAllTagsInvalidForRunErr = -22010,
2662  kTXNInvalidRunIndex = -22011,
2663  kTXNAlreadyInitializedErr = -22012,
2664  kTXNCannotTurnTSMOffWhenUsingUnicodeErr = -22013,
2665  kTXNCopyNotAllowedInEchoModeErr = -22014,
2666  kTXNDataTypeNotAllowedErr = -22015,
2667  kTXNATSUIIsNotInstalledErr = -22016,
2668  kTXNOutsideOfLineErr = -22017,
2669  kTXNOutsideOfFrameErr = -22018
2670  };
2671 
2672  /*Possible errors from the PrinterStatus bottleneck*/
2673  enum
2674  {
2675  printerStatusOpCodeNotSupportedErr = -25280
2676  };
2677 
2678  /* Keychain Manager error codes */
2679  enum
2680  {
2681  errKCNotAvailable = -25291,
2682  errKCReadOnly = -25292,
2683  errKCAuthFailed = -25293,
2684  errKCNoSuchKeychain = -25294,
2685  errKCInvalidKeychain = -25295,
2686  errKCDuplicateKeychain = -25296,
2687  errKCDuplicateCallback = -25297,
2688  errKCInvalidCallback = -25298,
2689  errKCDuplicateItem = -25299,
2690  errKCItemNotFound = -25300,
2691  errKCBufferTooSmall = -25301,
2692  errKCDataTooLarge = -25302,
2693  errKCNoSuchAttr = -25303,
2694  errKCInvalidItemRef = -25304,
2695  errKCInvalidSearchRef = -25305,
2696  errKCNoSuchClass = -25306,
2697  errKCNoDefaultKeychain = -25307,
2698  errKCInteractionNotAllowed = -25308,
2699  errKCReadOnlyAttr = -25309,
2700  errKCWrongKCVersion = -25310,
2701  errKCKeySizeNotAllowed = -25311,
2702  errKCNoStorageModule = -25312,
2703  errKCNoCertificateModule = -25313,
2704  errKCNoPolicyModule = -25314,
2705  errKCInteractionRequired = -25315,
2706  errKCDataNotAvailable = -25316,
2707  errKCDataNotModifiable = -25317,
2708  errKCCreateChainFailed = -25318
2709  };
2710 
2711  /* UnicodeUtilities error & status codes*/
2712  enum
2713  {
2714  kUCOutputBufferTooSmall =
2715  -25340, /* Output buffer too small for Unicode string result*/
2716  kUCTextBreakLocatorMissingType = -25341 /* Unicode text break error*/
2717  };
2718 
2719  /* Multiprocessing API error codes*/
2720  enum
2721  {
2722  kMPIterationEndErr = -29275,
2723  kMPPrivilegedErr = -29276,
2724  kMPProcessCreatedErr = -29288,
2725  kMPProcessTerminatedErr = -29289,
2726  kMPTaskCreatedErr = -29290,
2727  kMPTaskBlockedErr = -29291,
2728  kMPTaskStoppedErr = -29292, /* A convention used with MPThrowException.*/
2729  kMPBlueBlockingErr = -29293,
2730  kMPDeletedErr = -29295,
2731  kMPTimeoutErr = -29296,
2732  kMPTaskAbortedErr = -29297,
2733  kMPInsufficientResourcesErr = -29298,
2734  kMPInvalidIDErr = -29299
2735  };
2736 
2737  /* StringCompare error codes (in TextUtils range)*/
2738  enum
2739  {
2740  kCollateAttributesNotFoundErr = -29500,
2741  kCollateInvalidOptions = -29501,
2742  kCollateMissingUnicodeTableErr = -29502,
2743  kCollateUnicodeConvertFailedErr = -29503,
2744  kCollatePatternNotFoundErr = -29504,
2745  kCollateInvalidChar = -29505,
2746  kCollateBufferTooSmall = -29506,
2747  kCollateInvalidCollationRef = -29507
2748  };
2749 
2750  /* FontSync OSStatus Codes */
2751  enum
2752  {
2753  kFNSInvalidReferenceErr = -29580, /* ref. was NULL or otherwise bad */
2754  kFNSBadReferenceVersionErr = -29581, /* ref. version is out of known range */
2755  kFNSInvalidProfileErr = -29582, /* profile is NULL or otherwise bad */
2756  kFNSBadProfileVersionErr = -29583, /* profile version is out of known range */
2757  kFNSDuplicateReferenceErr =
2758  -29584, /* the ref. being added is already in the profile */
2759  kFNSMismatchErr =
2760  -29585, /* reference didn't match or wasn't found in profile */
2761  kFNSInsufficientDataErr = -29586, /* insufficient data for the operation */
2762  kFNSBadFlattenedSizeErr =
2763  -29587, /* flattened size didn't match input or was too small */
2764  kFNSNameNotFoundErr =
2765  -29589 /* The name with the requested paramters was not found */
2766  };
2767 
2768  /* MacLocales error codes*/
2769  enum
2770  {
2771  kLocalesBufferTooSmallErr = -30001,
2772  kLocalesTableFormatErr = -30002,
2773  kLocalesDefaultDisplayStatus =
2774  -30029 /* Requested display locale unavailable, used default*/
2775  };
2776 
2777  /* Settings Manager (formerly known as Location Manager) Errors */
2778  enum
2779  {
2780  kALMInternalErr = -30049,
2781  kALMGroupNotFoundErr = -30048,
2782  kALMNoSuchModuleErr = -30047,
2783  kALMModuleCommunicationErr = -30046,
2784  kALMDuplicateModuleErr = -30045,
2785  kALMInstallationErr = -30044,
2786  kALMDeferSwitchErr = -30043,
2787  kALMRebootFlagsLevelErr = -30042
2788  };
2789 
2790  enum
2791  {
2792  kALMLocationNotFoundErr = kALMGroupNotFoundErr /* Old name */
2793  };
2794 
2795  /* SoundSprocket Error Codes */
2796  enum
2797  {
2798  kSSpInternalErr = -30340,
2799  kSSpVersionErr = -30341,
2800  kSSpCantInstallErr = -30342,
2801  kSSpParallelUpVectorErr = -30343,
2802  kSSpScaleToZeroErr = -30344
2803  };
2804 
2805  /* NetSprocket Error Codes */
2806  enum
2807  {
2808  kNSpInitializationFailedErr = -30360,
2809  kNSpAlreadyInitializedErr = -30361,
2810  kNSpTopologyNotSupportedErr = -30362,
2811  kNSpPipeFullErr = -30364,
2812  kNSpHostFailedErr = -30365,
2813  kNSpProtocolNotAvailableErr = -30366,
2814  kNSpInvalidGameRefErr = -30367,
2815  kNSpInvalidParameterErr = -30369,
2816  kNSpOTNotPresentErr = -30370,
2817  kNSpOTVersionTooOldErr = -30371,
2818  kNSpMemAllocationErr = -30373,
2819  kNSpAlreadyAdvertisingErr = -30374,
2820  kNSpNotAdvertisingErr = -30376,
2821  kNSpInvalidAddressErr = -30377,
2822  kNSpFreeQExhaustedErr = -30378,
2823  kNSpRemovePlayerFailedErr = -30379,
2824  kNSpAddressInUseErr = -30380,
2825  kNSpFeatureNotImplementedErr = -30381,
2826  kNSpNameRequiredErr = -30382,
2827  kNSpInvalidPlayerIDErr = -30383,
2828  kNSpInvalidGroupIDErr = -30384,
2829  kNSpNoPlayersErr = -30385,
2830  kNSpNoGroupsErr = -30386,
2831  kNSpNoHostVolunteersErr = -30387,
2832  kNSpCreateGroupFailedErr = -30388,
2833  kNSpAddPlayerFailedErr = -30389,
2834  kNSpInvalidDefinitionErr = -30390,
2835  kNSpInvalidProtocolRefErr = -30391,
2836  kNSpInvalidProtocolListErr = -30392,
2837  kNSpTimeoutErr = -30393,
2838  kNSpGameTerminatedErr = -30394,
2839  kNSpConnectFailedErr = -30395,
2840  kNSpSendFailedErr = -30396,
2841  kNSpMessageTooBigErr = -30397,
2842  kNSpCantBlockErr = -30398,
2843  kNSpJoinFailedErr = -30399
2844  };
2845 
2846  /* InputSprockets error codes */
2847  enum
2848  {
2849  kISpInternalErr = -30420,
2850  kISpSystemListErr = -30421,
2851  kISpBufferToSmallErr = -30422,
2852  kISpElementInListErr = -30423,
2853  kISpElementNotInListErr = -30424,
2854  kISpSystemInactiveErr = -30425,
2855  kISpDeviceInactiveErr = -30426,
2856  kISpSystemActiveErr = -30427,
2857  kISpDeviceActiveErr = -30428,
2858  kISpListBusyErr = -30429
2859  };
2860 
2861  /* DrawSprockets error/warning codes */
2862  enum
2863  {
2864  kDSpNotInitializedErr = -30440L,
2865  kDSpSystemSWTooOldErr = -30441L,
2866  kDSpInvalidContextErr = -30442L,
2867  kDSpInvalidAttributesErr = -30443L,
2868  kDSpContextAlreadyReservedErr = -30444L,
2869  kDSpContextNotReservedErr = -30445L,
2870  kDSpContextNotFoundErr = -30446L,
2871  kDSpFrameRateNotReadyErr = -30447L,
2872  kDSpConfirmSwitchWarning = -30448L,
2873  kDSpInternalErr = -30449L,
2874  kDSpStereoContextErr = -30450L
2875  };
2876 
2882  enum
2883  {
2884  kFBCvTwinExceptionErr = -30500, /*no telling what it was*/
2885  kFBCnoIndexesFound = -30501,
2886  kFBCallocFailed = -30502, /*probably low memory*/
2887  kFBCbadParam = -30503,
2888  kFBCfileNotIndexed = -30504,
2889  kFBCbadIndexFile = -30505, /*bad FSSpec, or bad data in file*/
2890  kFBCcompactionFailed = -30506, /*V-Twin exception caught*/
2891  kFBCvalidationFailed = -30507, /*V-Twin exception caught*/
2892  kFBCindexingFailed = -30508, /*V-Twin exception caught*/
2893  kFBCcommitFailed = -30509, /*V-Twin exception caught*/
2894  kFBCdeletionFailed = -30510, /*V-Twin exception caught*/
2895  kFBCmoveFailed = -30511, /*V-Twin exception caught*/
2896  kFBCtokenizationFailed = -30512, /*couldn't read from document or query*/
2897  kFBCmergingFailed = -30513, /*couldn't merge index files*/
2898  kFBCindexCreationFailed = -30514, /*couldn't create index*/
2899  kFBCaccessorStoreFailed = -30515,
2900  kFBCaddDocFailed = -30516,
2901  kFBCflushFailed = -30517,
2902  kFBCindexNotFound = -30518,
2903  kFBCnoSearchSession = -30519,
2904  kFBCindexingCanceled = -30520,
2905  kFBCaccessCanceled = -30521,
2906  kFBCindexFileDestroyed = -30522,
2907  kFBCindexNotAvailable = -30523,
2908  kFBCsearchFailed = -30524,
2909  kFBCsomeFilesNotIndexed = -30525,
2910  kFBCillegalSessionChange = -30526, /*tried to add/remove vols to a session*/
2911  /*that has hits*/
2912  kFBCanalysisNotAvailable = -30527,
2913  kFBCbadIndexFileVersion = -30528,
2914  kFBCsummarizationCanceled = -30529,
2915  kFBCindexDiskIOFailed = -30530,
2916  kFBCbadSearchSession = -30531,
2917  kFBCnoSuchHit = -30532
2918  };
2919 
2920  /* QuickTime VR Errors */
2921  enum
2922  {
2923  notAQTVRMovieErr = -30540,
2924  constraintReachedErr = -30541,
2925  callNotSupportedByNodeErr = -30542,
2926  selectorNotSupportedByNodeErr = -30543,
2927  invalidNodeIDErr = -30544,
2928  invalidViewStateErr = -30545,
2929  timeNotInViewErr = -30546,
2930  propertyNotSupportedByNodeErr = -30547,
2931  settingNotSupportedByNodeErr = -30548,
2932  limitReachedErr = -30549,
2933  invalidNodeFormatErr = -30550,
2934  invalidHotSpotIDErr = -30551,
2935  noMemoryNodeFailedInitialize = -30552,
2936  streamingNodeNotReadyErr = -30553,
2937  qtvrLibraryLoadErr = -30554,
2938  qtvrUninitialized = -30555
2939  };
2940 
2941  /* Appearance Manager Error Codes */
2942  enum
2943  {
2944  themeInvalidBrushErr = -30560, /* pattern index invalid */
2945  themeProcessRegisteredErr = -30561,
2946  themeProcessNotRegisteredErr = -30562,
2947  themeBadTextColorErr = -30563,
2948  themeHasNoAccentsErr = -30564,
2949  themeBadCursorIndexErr = -30565,
2950  themeScriptFontNotFoundErr =
2951  -30566, /* theme font requested for uninstalled script system */
2952  themeMonitorDepthNotSupportedErr =
2953  -30567 /* theme not supported at monitor depth */
2954  };
2955 
2956  /* Control Manager Error Codes */
2957  enum
2958  {
2959  errMessageNotSupported = -30580,
2960  errDataNotSupported = -30581,
2961  errControlDoesntSupportFocus = -30582,
2962  errUnknownControl = -30584,
2963  errCouldntSetFocus = -30585,
2964  errNoRootControl = -30586,
2965  errRootAlreadyExists = -30587,
2966  errInvalidPartCode = -30588,
2967  errControlsAlreadyExist = -30589,
2968  errControlIsNotEmbedder = -30590,
2969  errDataSizeMismatch = -30591,
2970  errControlHiddenOrDisabled = -30592,
2971  errCantEmbedIntoSelf = -30594,
2972  errCantEmbedRoot = -30595,
2973  errItemNotControl = -30596,
2974  controlInvalidDataVersionErr = -30597,
2975  controlPropertyInvalid = -5603,
2976  controlPropertyNotFoundErr = -5604,
2977  controlHandleInvalidErr = -30599
2978  };
2979 
2980  /* URLAccess Error Codes */
2981  enum
2982  {
2983  kURLInvalidURLReferenceError = -30770,
2984  kURLProgressAlreadyDisplayedError = -30771,
2985  kURLDestinationExistsError = -30772,
2986  kURLInvalidURLError = -30773,
2987  kURLUnsupportedSchemeError = -30774,
2988  kURLServerBusyError = -30775,
2989  kURLAuthenticationError = -30776,
2990  kURLPropertyNotYetKnownError = -30777,
2991  kURLUnknownPropertyError = -30778,
2992  kURLPropertyBufferTooSmallError = -30779,
2993  kURLUnsettablePropertyError = -30780,
2994  kURLInvalidCallError = -30781,
2995  kURLFileEmptyError = -30783,
2996  kURLExtensionFailureError = -30785,
2997  kURLInvalidConfigurationError = -30786,
2998  kURLAccessNotAvailableError = -30787,
2999  kURL68kNotSupportedError = -30788
3000  };
3001 
3002  /* ComponentError codes*/
3003  enum
3004  {
3005  badComponentInstance =
3006  (long)0x80008001, /* when cast to an OSErr this is -32767*/
3007  badComponentSelector =
3008  (long)0x80008002 /* when cast to an OSErr this is -32766*/
3009  };
3010 
3011  enum
3012  {
3013  dsBusError = 1, /*bus error*/
3014  dsAddressErr = 2, /*address error*/
3015  dsIllInstErr = 3, /*illegal instruction error*/
3016  dsZeroDivErr = 4, /*zero divide error*/
3017  dsChkErr = 5, /*check trap error*/
3018  dsOvflowErr = 6, /*overflow trap error*/
3019  dsPrivErr = 7, /*privilege violation error*/
3020  dsTraceErr = 8, /*trace mode error*/
3021  dsLineAErr = 9, /*line 1010 trap error*/
3022  dsLineFErr = 10, /*line 1111 trap error*/
3023  dsMiscErr = 11, /*miscellaneous hardware exception error*/
3024  dsCoreErr = 12, /*unimplemented core routine error*/
3025  dsIrqErr = 13, /*uninstalled interrupt error*/
3026  dsIOCoreErr = 14, /*IO Core Error*/
3027  dsLoadErr = 15, /*Segment Loader Error*/
3028  dsFPErr = 16, /*Floating point error*/
3029  dsNoPackErr = 17, /*package 0 not present*/
3030  dsNoPk1 = 18, /*package 1 not present*/
3031  dsNoPk2 = 19 /*package 2 not present*/
3032  };
3033 
3034  enum
3035  {
3036  dsNoPk3 = 20, /*package 3 not present*/
3037  dsNoPk4 = 21, /*package 4 not present*/
3038  dsNoPk5 = 22, /*package 5 not present*/
3039  dsNoPk6 = 23, /*package 6 not present*/
3040  dsNoPk7 = 24, /*package 7 not present*/
3041  dsMemFullErr = 25, /*out of memory!*/
3042  dsBadLaunch = 26, /*can't launch file*/
3043  dsFSErr = 27, /*file system map has been trashed*/
3044  dsStknHeap = 28, /*stack has moved into application heap*/
3045  negZcbFreeErr = 33, /*ZcbFree has gone negative*/
3046  dsFinderErr = 41, /*can't load the Finder error*/
3047  dsBadSlotInt = 51, /*unserviceable slot interrupt*/
3048  dsBadSANEOpcode = 81, /*bad opcode given to SANE Pack4*/
3049  dsBadPatchHeader = 83, /*SetTrapAddress saw the ©come-from© header*/
3050  menuPrgErr = 84, /*happens when a menu is purged*/
3051  dsMBarNFnd = 85, /*Menu Manager Errors*/
3052  dsHMenuFindErr = 86, /*Menu Manager Errors*/
3053  dsWDEFNotFound = 87, /*could not load WDEF*/
3054  dsCDEFNotFound = 88, /*could not load CDEF*/
3055  dsMDEFNotFound = 89 /*could not load MDEF*/
3056  };
3057 
3058  enum
3059  {
3060  dsNoFPU =
3061  90, /*an FPU instruction was executed and the machine doesn©t have one*/
3062  dsNoPatch = 98, /*Can't patch for particular Model Mac*/
3063  dsBadPatch = 99, /*Can't load patch resource*/
3064  dsParityErr = 101, /*memory parity error*/
3065  dsOldSystem = 102, /*System is too old for this ROM*/
3066  ds32BitMode = 103, /*booting in 32-bit on a 24-bit sys*/
3067  dsNeedToWriteBootBlocks = 104, /*need to write new boot blocks*/
3068  dsNotEnoughRAMToBoot = 105, /*must have at least 1.5MB of RAM to boot 7.0*/
3069  dsBufPtrTooLow = 106, /*bufPtr moved too far during boot*/
3070  dsVMDeferredFuncTableFull = 112, /*VM's DeferUserFn table is full*/
3071  dsVMBadBackingStore =
3072  113, /*Error occurred while reading or writing the VM backing-store file*/
3073  dsCantHoldSystemHeap = 114, /*Unable to hold the system heap during boot*/
3074  dsSystemRequiresPowerPC = 116, /*Startup disk requires PowerPC*/
3075  dsGibblyMovedToDisabledFolder =
3076  117, /* For debug builds only, signals that active gibbly was disabled
3077  during boot. */
3078  dsUnBootableSystem =
3079  118, /* Active system file will not boot on this system because it was
3080  designed only to boot from a CD. */
3081  dsMustUseFCBAccessors = 119, /* FCBSPtr and FSFCBLen are invalid - must use
3082  FSM FCB accessor functions */
3083  dsMacOSROMVersionTooOld =
3084  120, /* The version of the "Mac OS ROM" file is too old to be used with
3085  the installed version of system software */
3086  dsLostConnectionToNetworkDisk =
3087  121, /* Lost communication with Netboot server */
3088  dsRAMDiskTooBig =
3089  122, /* The RAM disk is too big to boot safely; will be turned off */
3090  dsWriteToSupervisorStackGuardPage =
3091  128, /*the supervisor stack overflowed into its guard page */
3092  dsReinsert = 30, /*request user to reinsert off-line volume*/
3093  shutDownAlert = 42, /*handled like a shutdown error*/
3094  dsShutDownOrRestart = 20000, /*user choice between ShutDown and Restart*/
3095  dsSwitchOffOrRestart =
3096  20001, /*user choice between switching off and Restart*/
3097  dsForcedQuit = 20002, /*allow the user to ExitToShell, return if Cancel*/
3098  dsRemoveDisk = 20003, /*request user to remove disk from manual eject drive*/
3099  dsDirtyDisk = 20004, /*request user to return a manually-ejected dirty disk*/
3100  dsShutDownOrResume = 20109, /*allow user to return to Finder or ShutDown*/
3101  dsSCSIWarn = 20010, /*Portable SCSI adapter warning.*/
3102  dsMBSysError = 29200, /*Media Bay replace warning.*/
3103  dsMBFlpySysError = 29201, /*Media Bay, floppy replace warning.*/
3104  dsMBATASysError = 29202, /*Media Bay, ATA replace warning.*/
3105  dsMBATAPISysError = 29203, /*Media Bay, ATAPI replace warning...*/
3106  dsMBExternFlpySysError =
3107  29204, /*Media Bay, external floppy drive reconnect warning*/
3108  dsPCCardATASysError = 29205 /*PCCard has been ejected while still in use. */
3109  };
3110 
3117  enum
3118  {
3119  dsNoExtsMacsBug = -1, /*not a SysErr, just a placeholder */
3120  dsNoExtsDisassembler = -2, /*not a SysErr, just a placeholder */
3121  dsMacsBugInstalled = -10, /*say ©MacsBug Installed©*/
3122  dsDisassemblerInstalled = -11, /*say ©Disassembler Installed©*/
3123  dsExtensionsDisabled = -13, /*say ©Extensions Disabled©*/
3124  dsGreeting = 40, /*welcome to Macintosh greeting*/
3125  dsSysErr = 32767, /*general system error*/
3126  /*old names here for compatibility©s sake*/
3127  WDEFNFnd = dsWDEFNotFound
3128  };
3129 
3130  enum
3131  {
3132  CDEFNFnd = dsCDEFNotFound,
3133  dsNotThe1 = 31, /*not the disk I wanted*/
3134  dsBadStartupDisk = 42, /*unable to mount boot volume (sad Mac only)*/
3135  dsSystemFileErr = 43, /*can©t find System file to open (sad Mac only)*/
3136  dsHD20Installed = -12, /*say ©HD20 Startup©*/
3137  mBarNFnd = -126, /*system error code for MBDF not found*/
3138  fsDSIntErr = -127, /*non-hardware Internal file system error*/
3139  hMenuFindErr = -127, /*could not find HMenu's parent in MenuKey (wrong error
3140  code - obsolete)*/
3141  userBreak = -490, /*user debugger break*/
3142  strUserBreak = -491, /*user debugger break; display string on stack*/
3143  exUserBreak = -492 /*user debugger break; execute debugger commands on stack*/
3144  };
3145 
3146  enum
3147  {
3148  /* DS Errors which are specific to the new runtime model introduced with
3149  PowerPC */
3150  dsBadLibrary = 1010, /* Bad shared library */
3151  dsMixedModeFailure = 1011 /* Internal Mixed Mode Failure */
3152  };
3153 
3204 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3205 #pragma parameter SysError(__D0)
3206 #endif
3207  void
3208  SysError(short errorCode);
3209 
3210 #if PRAGMA_STRUCT_ALIGN
3211 #pragma options align = reset
3212 #elif PRAGMA_STRUCT_PACKPUSH
3213 #pragma pack(pop)
3214 #elif PRAGMA_STRUCT_PACK
3215 #pragma pack()
3216 #endif
3217 
3218 #ifdef PRAGMA_IMPORT_OFF
3219 #pragma import off
3220 #elif PRAGMA_IMPORT
3221 #pragma import reset
3222 #endif
3223 
3224 #ifdef __cplusplus
3225 }
3226 #endif
3227 
3228 #endif /* __MACERRORS__ */
Set up for compiler independent conditionals.
void SysError(short errorCode)
Perform action normally taken upon a system error.