Package Name: errors
package Errors is
--
-- File: Errors.h
--
-- Contains: OSErr codes.
--
-- Version: Technology: System 7.5
-- Package: Universal Interfaces 2.1 in ŇMPW LatestÓ on ETO #18
--
-- Copyright: © 1984-1995 by Apple Computer, Inc.
-- All rights reserved.
--
paramErr : constant := -50; -- error in user parameter list
noHardwareErr : constant := -200; -- Sound Manager Error Returns
notEnoughHardwareErr : constant := -201; -- Sound Manager Error Returns
userCanceledErr : constant := -128;
qErr : constant := -1; -- queue element not found during deletion
vTypErr : constant := -2; -- invalid queue element
corErr : constant := -3; -- core routine number out of range
unimpErr : constant := -4; -- unimplemented core routine
SlpTypeErr : constant := -5; -- invalid queue element
seNoDB : constant := -8; -- no debugger installed to handle debugger command
controlErr : constant := -17; -- I/O System Errors
statusErr : constant := -18; -- I/O System Errors
readErr : constant := -19; -- I/O System Errors
writErr : constant := -20; -- I/O System Errors
badUnitErr : constant := -21; -- I/O System Errors
unitEmptyErr : constant := -22; -- I/O System Errors
openErr : constant := -23; -- I/O System Errors
closErr : constant := -24; -- I/O System Errors
dRemovErr : constant := -25; -- tried to remove an open driver
dInstErr : constant := -26; -- DrvrInstall couldn't find driver in resources
abortErr : constant := -27; -- IO call aborted by KillIO
iIOAbortErr : constant := -27; -- IO abort error (Printing Manager)
notOpenErr : constant := -28; -- Couldn't rd/wr/ctl/sts cause driver not opened
unitTblFullErr : constant := -29; -- unit table has no more entries
dceExtErr : constant := -30; -- dce extension error
slotNumErr : constant := -360; -- invalid slot # error
gcrOnMFMErr : constant := -400; -- gcr format on high density media error
dirFulErr : constant := -33; -- Directory full
dskFulErr : constant := -34; -- disk full
nsvErr : constant := -35; -- no such volume
ioErr : constant := -36; -- I/O error (bummers)
bdNamErr : constant := -37; -- there may be no bad names in the final system!
fnOpnErr : constant := -38; -- File not open
eofErr : constant := -39; -- End of file
posErr : constant := -40; -- tried to position to before start of file (r/w)
mFulErr : constant := -41; -- memory full (open) or file won't fit (load)
tmfoErr : constant := -42; -- too many files open
fnfErr : constant := -43; -- File not found
wPrErr : constant := -44; -- diskette is write protected.
fLckdErr : constant := -45; -- file is locked
vLckdErr : constant := -46; -- volume is locked
fBsyErr : constant := -47; -- File is busy (delete)
dupFNErr : constant := -48; -- duplicate filename (rename)
opWrErr : constant := -49; -- file already open with with write permission
rfNumErr : constant := -51; -- refnum error
gfpErr : constant := -52; -- get file position error
volOffLinErr : constant := -53; -- volume not on line error (was Ejected)
permErr : constant := -54; -- permissions error (on file open)
volOnLinErr : constant := -55; -- drive volume already on-line at MountVol
nsDrvErr : constant := -56; -- no such drive (tried to mount a bad drive num)
noMacDskErr : constant := -57; -- not a mac diskette (sig bytes are wrong)
extFSErr : constant := -58; -- volume in question belongs to an external fs
fsRnErr : constant := -59; -- file system internal error:during rename the old entry was deleted but could not be restored.
badMDBErr : constant := -60; -- bad master directory block
wrPermErr : constant := -61; -- write permissions error
dirNFErr : constant := -120; -- Directory not found
tmwdoErr : constant := -121; -- No free WDCB available
badMovErr : constant := -122; -- Move into offspring error
wrgVolTypErr : constant := -123; -- Wrong volume type error [operation not supported for MFS]
volGoneErr : constant := -124; -- Server volume has been disconnected.
fidNotFound : constant := -1300; -- no file thread exists.
fidExists : constant := -1301; -- file id already exists
notAFileErr : constant := -1302; -- directory specified
diffVolErr : constant := -1303; -- files on different volumes
catChangedErr : constant := -1304; -- the catalog has been modified
desktopDamagedErr : constant := -1305; -- desktop database files are corrupted
sameFileErr : constant := -1306; -- can't exchange a file with itself
badFidErr : constant := -1307; -- file id is dangling or doesn't match with the file number
notARemountErr : constant := -1308; -- when _Mount allows only remounts and doesn't get one
fileBoundsErr : constant := -1309; -- file's EOF, offset, mark or size is too big
fsDataTooBigErr : constant := -1310; -- file or volume is too big for system
envNotPresent : constant := -5500; -- returned by glue.
envBadVers : constant := -5501; -- Version non-positive
envVersTooBig : constant := -5502; -- Version bigger than call can handle
fontDecError : constant := -64; -- error during font declaration
fontNotDeclared : constant := -65; -- font not declared
fontSubErr : constant := -66; -- font substitution occured
fontNotOutlineErr : constant := -32615; -- bitmap font passed to routine that does outlines only
firstDskErr : constant := -84; -- I/O System Errors
lastDskErr : constant := -64; -- I/O System Errors
noDriveErr : constant := -64; -- drive not installed
offLinErr : constant := -65; -- r/w requested for an off-line drive
noNybErr : constant := -66; -- couldn't find 5 nybbles in 200 tries
noAdrMkErr : constant := -67; -- couldn't find valid addr mark
dataVerErr : constant := -68; -- read verify compare failed
badCksmErr : constant := -69; -- addr mark checksum didn't check
badBtSlpErr : constant := -70; -- bad addr mark bit slip nibbles
noDtaMkErr : constant := -71; -- couldn't find a data mark header
badDCksum : constant := -72; -- bad data mark checksum
badDBtSlp : constant := -73; -- bad data mark bit slip nibbles
wrUnderrun : constant := -74; -- write underrun occurred
cantStepErr : constant := -75; -- step handshake failed
tk0BadErr : constant := -76; -- track 0 detect doesn't change
initIWMErr : constant := -77; -- unable to initialize IWM
twoSideErr : constant := -78; -- tried to read 2nd side on a 1-sided drive
spdAdjErr : constant := -79; -- unable to correctly adjust disk speed
seekErr : constant := -80; -- track number wrong on address mark
sectNFErr : constant := -81; -- sector number never found on a track
fmt1Err : constant := -82; -- can't find sector 0 after track format
fmt2Err : constant := -83; -- can't get enough sync
verErr : constant := -84; -- track failed to verify
clkRdErr : constant := -85; -- unable to read same clock value twice
clkWrErr : constant := -86; -- time written did not verify
prWrErr : constant := -87; -- parameter ram written didn't read-verify
prInitErr : constant := -88; -- InitUtil found the parameter ram uninitialized
rcvrErr : constant := -89; -- SCC receiver error (framing; parity; OR)
breakRecd : constant := -90; -- Break received (SCC)
-- Power Manager Errors
pmBusyErr : constant := -13000; -- Power Mgr never ready to start handshake
pmReplyTOErr : constant := -13001; -- Timed out waiting for reply
pmSendStartErr : constant := -13002; -- during send, pmgr did not start hs
pmSendEndErr : constant := -13003; -- during send, pmgr did not finish hs
pmRecvStartErr : constant := -13004; -- during receive, pmgr did not start hs
pmRecvEndErr : constant := -13005; -- during receive, pmgr did not finish hs configured for this connection
-- Printing Errors
iMemFullErr : constant := -108;
iIOAbort : constant := -27;
-- Scrap Manager errors
noScrapErr : constant := -100; -- No scrap exists error
noTypeErr : constant := -102; -- No object of that type in scrap
memROZWarn : constant := -99; -- soft error in ROZ
memROZError : constant := -99; -- hard error in ROZ
memROZErr : constant := -99; -- hard error in ROZ
memFullErr : constant := -108; -- Not enough room in heap zone
nilHandleErr : constant := -109; -- Master Pointer was NIL in HandleZone or other
memWZErr : constant := -111; -- WhichZone failed (applied to free block)
memPurErr : constant := -112; -- trying to purge a locked or non-purgeable block
memAdrErr : constant := -110; -- address was odd; or out of range
memAZErr : constant := -113; -- Address in zone check failed
memPCErr : constant := -114; -- Pointer Check failed
memBCErr : constant := -115; -- Block Check failed
memSCErr : constant := -116; -- Size Check failed
memLockedErr : constant := -117; -- trying to move a locked block (MoveHHi)
resourceInMemory : constant := -188; -- Resource already in memory
writingPastEnd : constant := -189; -- Writing past end of file
inputOutOfBounds : constant := -190; -- Offset of Count out of bounds
resNotFound : constant := -192; -- Resource not found
resFNotFound : constant := -193; -- Resource file not found
addResFailed : constant := -194; -- AddResource failed
addRefFailed : constant := -195; -- AddReference failed
rmvResFailed : constant := -196; -- RmveResource failed
rmvRefFailed : constant := -197; -- RmveReference failed
resAttrErr : constant := -198; -- attribute inconsistent with operation
mapReadErr : constant := -199; -- map inconsistent with operation
CantDecompress : constant := -186; -- resource bent ("the bends") - can't decompress a compressed resource
badExtResource : constant := -185; -- extended resource has a bad format.
evtNotEnb : constant := 1; -- event not enabled at PostEvent
noMemForPictPlaybackErr : constant := -145;
rgnOverflowErr : constant := -147;
rgnTooBigError : constant := -147;
pixMapTooDeepErr : constant := -148;
insufficientStackErr : constant := -149;
nsStackErr : constant := -149;
-- OffScreen QuickDraw Errors
cMatchErr : constant := -150; -- Color2Index failed to find an index
cTempMemErr : constant := -151; -- failed to allocate memory for temporary structures
cNoMemErr : constant := -152; -- failed to allocate memory for structure
cRangeErr : constant := -153; -- range error on colorTable request
cProtectErr : constant := -154; -- colorTable entry protection violation
cDevErr : constant := -155; -- invalid type of graphics device
cResErr : constant := -156; -- invalid resolution for MakeITable
cDepthErr : constant := -157; -- invalid pixel depth
rgnTooBigErr : constant := -500;
updPixMemErr : constant := -125; -- insufficient memory to update a pixmap
pictInfoVersionErr : constant := -11000; -- wrong version of the PictInfo structure
pictInfoIDErr : constant := -11001; -- the internal consistancy check for the PictInfoID is wrong
pictInfoVerbErr : constant := -11002; -- the passed verb was invalid
cantLoadPickMethodErr : constant := -11003; -- unable to load the custom pick proc
colorsRequestedErr : constant := -11004; -- the number of colors requested was illegal
pictureDataErr : constant := -11005; -- the picture data was invalid
-- Sound Manager errors
noHardware : constant := noHardwareErr; -- obsolete spelling
notEnoughHardware : constant := notEnoughHardwareErr; -- obsolete spelling
queueFull : constant := -203; -- Sound Manager Error Returns
resProblem : constant := -204; -- Sound Manager Error Returns
badChannel : constant := -205; -- Sound Manager Error Returns
badFormat : constant := -206; -- Sound Manager Error Returns
notEnoughBufferSpace : constant := -207; -- could not allocate enough memory
badFileFormat : constant := -208; -- was not type AIFF or was of bad format,corrupt
channelBusy : constant := -209; -- the Channel is being used for a PFD already
buffersTooSmall : constant := -210; -- can not operate in the memory allowed
channelNotBusy : constant := -211;
noMoreRealTime : constant := -212; -- not enough CPU cycles left to add another task
siNoSoundInHardware : constant := -220; -- no Sound Input hardware
siBadSoundInDevice : constant := -221; -- invalid index passed to SoundInGetIndexedDevice
siNoBufferSpecified : constant := -222; -- returned by synchronous SPBRecord if nil buffer passed
siInvalidCompression : constant := -223; -- invalid compression type
siHardDriveTooSlow : constant := -224; -- hard drive too slow to record to disk
siInvalidSampleRate : constant := -225; -- invalid sample rate
siInvalidSampleSize : constant := -226; -- invalid sample size
siDeviceBusyErr : constant := -227; -- input device already in use
siBadDeviceName : constant := -228; -- input device could not be opened
siBadRefNum : constant := -229; -- invalid input device reference number
siInputDeviceErr : constant := -230; -- input device hardware failure
siUnknownInfoType : constant := -231; -- invalid info type selector (returned by driver)
siUnknownQuality : constant := -232; -- invalid quality selector (returned by driver)
-- Speech Manager errors
noSynthFound : constant := -240;
synthOpenFailed : constant := -241;
synthNotReady : constant := -242;
bufTooSmall : constant := -243;
voiceNotFound : constant := -244;
incompatibleVoice : constant := -245;
badDictFormat : constant := -246;
badInputText : constant := -247;
-- Midi Manager Errors:
midiNoClientErr : constant := -250; -- no client with that ID found
midiNoPortErr : constant := -251; -- no port with that ID found
midiTooManyPortsErr : constant := -252; -- too many ports already installed in the system
midiTooManyConsErr : constant := -253; -- too many connections made
midiVConnectErr : constant := -254; -- pending virtual connection created
midiVConnectMade : constant := -255; -- pending virtual connection resolved
midiVConnectRmvd : constant := -256; -- pending virtual connection removed
midiNoConErr : constant := -257; -- no connection exists between specified ports
midiWriteErr : constant := -258; -- MIDIWritePacket couldn't write to all connected ports
midiNameLenErr : constant := -259; -- name supplied is longer than 31 characters
midiDupIDErr : constant := -260; -- duplicate client ID
midiInvalidCmdErr : constant := -261; -- command not supported for port type
-- Notification Manager errors
nmTypErr : constant := -299; -- wrong queue type
siInitSDTblErr : constant := 1; -- slot int dispatch table could not be initialized.
siInitVBLQsErr : constant := 2; -- VBLqueues for all slots could not be initialized.
siInitSPTblErr : constant := 3; -- slot priority table could not be initialized.
sdmJTInitErr : constant := 10; -- SDM Jump Table could not be initialized.
sdmInitErr : constant := 11; -- SDM could not be initialized.
sdmSRTInitErr : constant := 12; -- Slot Resource Table could not be initialized.
sdmPRAMInitErr : constant := 13; -- Slot PRAM could not be initialized.
sdmPriInitErr : constant := 14; -- Cards could not be initialized.
smSDMInitErr : constant := -290; -- Error; SDM could not be initialized.
smSRTInitErr : constant := -291; -- Error; Slot Resource Table could not be initialized.
smPRAMInitErr : constant := -292; -- Error; Slot Resource Table could not be initialized.
smPriInitErr : constant := -293; -- Error; Cards could not be initialized.
smEmptySlot : constant := -300; -- No card in slot
smCRCFail : constant := -301; -- CRC check failed for declaration data
smFormatErr : constant := -302; -- FHeader Format is not Apple's
smRevisionErr : constant := -303; -- Wrong revison level
smNoDir : constant := -304; -- Directory offset is Nil
smDisabledSlot : constant := -305; -- This slot is disabled (-305 use to be smLWTstBad)
smNosInfoArray : constant := -306; -- No sInfoArray. Memory Mgr error.
--Dictionary Manager errors
notBTree : constant := -410; -- The file is not a dictionary.
btNoSpace : constant := -413; -- Can't allocate disk space.
btDupRecErr : constant := -414; -- Record already exists.
btRecNotFnd : constant := -415; -- Record cannot be found.
btKeyLenErr : constant := -416; -- Maximum key length is too long or equal to zero.
btKeyAttrErr : constant := -417; -- There is no such a key attribute.
unknownInsertModeErr : constant := -20000; -- There is no such an insert mode.
recordDataTooBigErr : constant := -20001; -- The record data is bigger than buffer size (1024 bytes).
invalidIndexErr : constant := -20002; -- The recordIndex parameter is not valid.
smResrvErr : constant := -307; -- Fatal reserved error. Resreved field <> 0.
smUnExBusErr : constant := -308; -- Unexpected BusError
smBLFieldBad : constant := -309; -- ByteLanes field was bad.
smFHBlockRdErr : constant := -310; -- Error occured during _sGetFHeader.
smFHBlkDispErr : constant := -311; -- Error occured during _sDisposePtr (Dispose of FHeader block).
smDisposePErr : constant := -312; -- _DisposePointer error
smNoBoardSRsrc : constant := -313; -- No Board sResource.
smGetPRErr : constant := -314; -- Error occured during _sGetPRAMRec (See SIMStatus).
smNoBoardId : constant := -315; -- No Board Id.
smInitStatVErr : constant := -316; -- The InitStatusV field was negative after primary or secondary init.
smInitTblVErr : constant := -317; -- An error occured while trying to initialize the Slot Resource Table.
smNoJmpTbl : constant := -318; -- SDM jump table could not be created.
smReservedSlot : constant := -318; -- slot is reserved, VM should not use this address space.
smBadBoardId : constant := -319; -- BoardId was wrong; re-init the PRAM record.
smBusErrTO : constant := -320; -- BusError time out.
-- The following errors are for primary or secondary init code. The errors are logged in the
-- vendor status field of the sInfo record. Normally the vendor error is not Apple's concern,
-- but a special error is needed to patch secondary inits.
svTempDisable : constant := -32768; -- Temporarily disable card but run primary init.
svDisabled : constant := -32640; -- Reserve range -32640 to -32768 for Apple temp disables.
smBadRefId : constant := -330; -- Reference Id not found in List
smBadsList : constant := -331; -- Bad sList: Id1 < Id2 < Id3 ...format is not followed.
smReservedErr : constant := -332; -- Reserved field not zero
smCodeRevErr : constant := -333; -- Code revision is wrong
smCPUErr : constant := -334; -- Code revision is wrong
smsPointerNil : constant := -335; -- LPointer is nil From sOffsetData. If this error occurs; check sInfo rec for more information.
smNilsBlockErr : constant := -336; -- Nil sBlock error (Dont allocate and try to use a nil sBlock)
smSlotOOBErr : constant := -337; -- Slot out of bounds error
smSelOOBErr : constant := -338; -- Selector out of bounds error
smNewPErr : constant := -339; -- _NewPtr error
smBlkMoveErr : constant := -340; -- _BlockMove error
smCkStatusErr : constant := -341; -- Status of slot : constant := fail.
smGetDrvrNamErr : constant := -342; -- Error occured during _sGetDrvrName.
smDisDrvrNamErr : constant := -343; -- Error occured during _sDisDrvrName.
smNoMoresRsrcs : constant := -344; -- No more sResources
smsGetDrvrErr : constant := -345; -- Error occurred during _sGetDriver.
smBadsPtrErr : constant := -346; -- Bad pointer was passed to sCalcsPointer
smByteLanesErr : constant := -347; -- NumByteLanes was determined to be zero.
smOffsetErr : constant := -348; -- Offset was too big (temporary error
smNoGoodOpens : constant := -349; -- No opens were successfull in the loop.
smSRTOvrFlErr : constant := -350; -- SRT over flow.
smRecNotFnd : constant := -351; -- Record not found in the SRT.
editionMgrInitErr : constant := -450; -- edition manager not inited by this app
badSectionErr : constant := -451; -- not a valid SectionRecord
notRegisteredSectionErr : constant := -452; -- not a registered SectionRecord
badEditionFileErr : constant := -453; -- edition file is corrupt
badSubPartErr : constant := -454; -- can not use sub parts in this release
multiplePublisherWrn : constant := -460; -- A Publisher is already registered for that container
containerNotFoundWrn : constant := -461; -- could not find editionContainer at this time
containerAlreadyOpenWrn : constant := -462; -- container already opened by this section
notThePublisherWrn : constant := -463; -- not the first registered publisher for that container
teScrapSizeErr : constant := -501; -- scrap item too big for text edit record
hwParamErr : constant := -502; -- bad selector for _HWPriv
--Process Manager errors
procNotFound : constant := -600; -- no eligible process with specified descriptor
memFragErr : constant := -601; -- not enough room to launch app w/special requirements
appModeErr : constant := -602; -- memory mode is 32-bit, but app not 32-bit clean
protocolErr : constant := -603; -- app made module calls in improper order
hardwareConfigErr : constant := -604; -- hardware configuration not correct for call
appMemFullErr : constant := -605; -- application SIZE not big enough for launch
appIsDaemon : constant := -606; -- app is BG-only, and launch flags disallow this
bufferIsSmall : constant := -607; -- error returns from Post and Accept
noOutstandingHLE : constant := -608;
connectionInvalid : constant := -609;
noUserInteractionAllowed : constant := -610; -- no user interaction allowed
-- Thread Manager Error Codes
threadTooManyReqsErr : constant := -617;
threadNotFoundErr : constant := -618;
threadProtocolErr : constant := -619;
--MemoryDispatch errors
notEnoughMemoryErr : constant := -620; -- insufficient physical memory
notHeldErr : constant := -621; -- specified range of memory is not held
cannotMakeContiguousErr : constant := -622; -- cannot make specified range contiguous
notLockedErr : constant := -623; -- specified range of memory is not locked
interruptsMaskedErr : constant := -624; -- donŐt call with interrupts masked
cannotDeferErr : constant := -625; -- unable to defer additional functions
noMMUErr : constant := -626; -- no MMU present
ddpSktErr : constant := -91; -- error in soket number
ddpLenErr : constant := -92; -- data length too big
noBridgeErr : constant := -93; -- no network bridge for non-local send
lapProtErr : constant := -94; -- error in attaching/detaching protocol
excessCollsns : constant := -95; -- excessive collisions on write
portNotPwr : constant := -96; -- serial port not currently powered
portInUse : constant := -97; -- driver Open error code (port is in use)
portNotCf : constant := -98; -- driver Open error code (parameter RAM not configured for this connection)
--Help Mgr error range: -850 to -874
hmHelpDisabled : constant := -850; -- Show Balloons mode was off, call to routine ignored
hmBalloonAborted : constant := -853; -- Returned if mouse was moving or mouse wasn't in window port rect
hmSameAsLastBalloon : constant := -854; -- Returned from HMShowMenuBalloon if menu & item is same as last time
hmHelpManagerNotInited : constant := -855; -- Returned from HMGetHelpMenuHandle if help menu not setup
hmSkippedBalloon : constant := -857; -- Returned from calls if helpmsg specified a skip balloon
hmWrongVersion : constant := -858; -- Returned if help mgr resource was the wrong version
hmUnknownHelpType : constant := -859; -- Returned if help msg record contained a bad type
hmOperationUnsupported : constant := -861; -- Returned from HMShowBalloon call if bad method passed to routine
hmNoBalloonUp : constant := -862; -- Returned from HMRemoveBalloon if no balloon was visible when call was made
hmCloseViewActive : constant := -863; -- Returned from HMRemoveBalloon if CloseView was active
nbpBuffOvr : constant := -1024; -- Buffer overflow in LookupName
nbpNoConfirm : constant := -1025;
nbpConfDiff : constant := -1026; -- Name confirmed at different socket
nbpDuplicate : constant := -1027; -- Duplicate name exists already
nbpNotFound : constant := -1028; -- Name not found on remove
nbpNISErr : constant := -1029; -- Error trying to open the NIS
aspBadVersNum : constant := -1066; -- Server cannot support this ASP version
aspBufTooSmall : constant := -1067; -- Buffer too small
aspNoMoreSess : constant := -1068; -- No more sessions on server
aspNoServers : constant := -1069; -- No servers at that address
aspParamErr : constant := -1070; -- Parameter error
aspServerBusy : constant := -1071; -- Server cannot open another session
aspSessClosed : constant := -1072; -- Session closed
aspSizeErr : constant := -1073; -- Command block too big
aspTooMany : constant := -1074; -- Too many clients (server error)
aspNoAck : constant := -1075; -- No ack on attention request (server err)
reqFailed : constant := -1096;
tooManyReqs : constant := -1097;
tooManySkts : constant := -1098;
badATPSkt : constant := -1099;
badBuffNum : constant := -1100;
noRelErr : constant := -1101;
cbNotFound : constant := -1102;
noSendResp : constant := -1103;
noDataArea : constant := -1104;
reqAborted : constant := -1105;
-- ADSP Error Codes
-- driver control ioResults
errRefNum : constant := -1280; -- bad connection refNum
errAborted : constant := -1279; -- control call was aborted
errState : constant := -1278; -- bad connection state for this operation
errOpening : constant := -1277; -- open connection request failed
errAttention : constant := -1276; -- attention message too long
errFwdReset : constant := -1275; -- read terminated by forward reset
errDSPQueueSize : constant := -1274; -- DSP Read/Write Queue Too small
errOpenDenied : constant := -1273; -- open connection request was denied
--*** OSL ERROR CODES ***
errAEImpossibleRange : constant := -1720; -- A range like 3rd to 2nd, or 1st to all.
errAEWrongNumberArgs : constant := -1721; -- Logical op kAENOT used with other than 1 term
errAEAccessorNotFound : constant := -1723; -- Accessor proc matching wantClass and containerType or wildcards not found
errAENoSuchLogical : constant := -1725; -- Something other than AND, OR, or NOT
errAEBadTestKey : constant := -1726; -- Test is neither typeLogicalDescriptor nor typeCompDescriptor
errAENotAnObjSpec : constant := -1727; -- Param to AEResolve not of type 'obj '
errAENoSuchObject : constant := -1728; -- e.g.,: specifier asked for the 3rd, but there are only 2. Basically, this indicates a run-time resolution error.
errAENegativeCount : constant := -1729; -- CountProc returned negative value
errAEEmptyListContainer : constant := -1730; -- Attempt to pass empty list as container to accessor
--------------------------------------------------------------
-- Apple event manager error messages
--------------------------------------------------------------
errAECoercionFail : constant := -1700; -- bad parameter data or unable to coerce the data supplied
errAEDescNotFound : constant := -1701;
errAECorruptData : constant := -1702;
errAEWrongDataType : constant := -1703;
errAENotAEDesc : constant := -1704;
errAEBadListItem : constant := -1705; -- the specified list item does not exist
errAENewerVersion : constant := -1706; -- need newer version of the AppleEvent manager
errAENotAppleEvent : constant := -1707; -- the event is not in AppleEvent format
errAEEventNotHandled : constant := -1708; -- the AppleEvent was not handled by any handler
errAEReplyNotValid : constant := -1709; -- AEResetTimer was passed an invalid reply parameter
errAEUnknownSendMode : constant := -1710; -- mode wasn't NoReply, WaitReply, or QueueReply or Interaction level is unknown
errAEWaitCanceled : constant := -1711; -- in AESend, the user cancelled out of wait loop for reply or receipt
errAETimeout : constant := -1712; -- the AppleEvent timed out
errAENoUserInteraction : constant := -1713; -- no user interaction is allowed
errAENotASpecialFunction : constant := -1714; -- there is no special function for/with this keyword
errAEParamMissed : constant := -1715; -- a required parameter was not accessed
errAEUnknownAddressType : constant := -1716; -- the target address type is not known
errAEHandlerNotFound : constant := -1717; -- no handler in the dispatch tables fits the parameters to AEGetEventHandler or AEGetCoercionHandler
errAEReplyNotArrived : constant := -1718; -- the contents of the reply you are accessing have not arrived yet
errAEIllegalIndex : constant := -1719; -- index is out of range in a put operation
errAEUnknownObjectType : constant := -1731; -- available only in version 1.0.1 or greater
errAERecordingIsAlreadyOn : constant := -1732; -- available only in version 1.0.1 or greater
-------------------------
-- API Errors
-------------------------
errOSASystemError : constant := -1750;
errOSAInvalidID : constant := -1751;
errOSABadStorageType : constant := -1752;
errOSAScriptError : constant := -1753;
errOSABadSelector : constant := -1754;
errOSASourceNotAvailable : constant := -1756;
errOSANoSuchDialect : constant := -1757;
errOSADataFormatObsolete : constant := -1758;
errOSADataFormatTooNew : constant := -1759;
errOSACorruptData : constant := errAECorruptData;
errOSARecordingIsAlreadyOn : constant := errAERecordingIsAlreadyOn;
errOSAComponentMismatch : constant := -1761; -- Parameters are from 2 different components
errOSACantOpenComponent : constant := -1762; -- Can't connect to scripting system with that ID
--QuickTime errors
couldNotResolveDataRef : constant := -2000;
badImageDescription : constant := -2001;
badPublicMovieAtom : constant := -2002;
cantFindHandler : constant := -2003;
cantOpenHandler : constant := -2004;
badComponentType : constant := -2005;
noMediaHandler : constant := -2006;
noDataHandler : constant := -2007;
invalidMedia : constant := -2008;
invalidTrack : constant := -2009;
invalidMovie : constant := -2010;
invalidSampleTable : constant := -2011;
invalidDataRef : constant := -2012;
invalidHandler : constant := -2013;
invalidDuration : constant := -2014;
invalidTime : constant := -2015;
cantPutPublicMovieAtom : constant := -2016;
badEditList : constant := -2017;
mediaTypesDontMatch : constant := -2018;
progressProcAborted : constant := -2019;
movieToolboxUninitialized : constant := -2020;
noRecordOfApp : constant := movieToolboxUninitialized; -- replica
wfFileNotFound : constant := -2021;
cantCreateSingleForkFile : constant := -2022; -- happens when file already exists
invalidEditState : constant := -2023;
nonMatchingEditState : constant := -2024;
staleEditState : constant := -2025;
userDataItemNotFound : constant := -2026;
maxSizeToGrowTooSmall : constant := -2027;
badTrackIndex : constant := -2028;
trackIDNotFound : constant := -2029;
trackNotInMovie : constant := -2030;
timeNotInTrack : constant := -2031;
timeNotInMedia : constant := -2032;
badEditIndex : constant := -2033;
internalQuickTimeError : constant := -2034;
cantEnableTrack : constant := -2035;
invalidRect : constant := -2036;
invalidSampleNum : constant := -2037;
invalidChunkNum : constant := -2038;
invalidSampleDescIndex : constant := -2039;
invalidChunkCache : constant := -2040;
invalidSampleDescription : constant := -2041;
dataNotOpenForRead : constant := -2042;
dataNotOpenForWrite : constant := -2043;
dataAlreadyOpenForWrite : constant := -2044;
dataAlreadyClosed : constant := -2045;
endOfDataReached : constant := -2046;
dataNoDataRef : constant := -2047;
noMovieFound : constant := -2048;
invalidDataRefContainer : constant := -2049;
badDataRefIndex : constant := -2050;
noDefaultDataRef : constant := -2051;
couldNotUseAnExistingSample : constant := -2052;
featureUnsupported : constant := -2053;
noVideoTrackInMovieErr : constant := -2054; -- QT for Windows error
noSoundTrackInMovieErr : constant := -2055; -- QT for Windows error
soundSupportNotAvailableErr : constant := -2056; -- QT for Windows error
unsupportedAuxiliaryImportData : constant := -2057;
auxiliaryExportDataUnavailable : constant := -2058;
samplesAlreadyInMediaErr : constant := -2059;
movieTextNotFoundErr : constant := -2062;
digiUnimpErr : constant := -2201; -- feature unimplemented
qtParamErr : constant := -2202; -- bad input parameter (out of range, etc)
matrixErr : constant := -2203; -- bad matrix, digitizer did nothing
notExactMatrixErr : constant := -2204; -- warning of bad matrix, digitizer did its best
noMoreKeyColorsErr : constant := -2205; -- all key indexes in use
notExactSizeErr : constant := -2206; -- CanŐt do exact size requested
badDepthErr : constant := -2207; -- CanŐt digitize into this depth
noDMAErr : constant := -2208; -- CanŐt do DMA digitizing (i.e. can't go to requested dest
badCallOrderErr : constant := -2209; -- Usually due to a status call being called prior to being setup first
----------------------------------------------------------------------------
-- Script Error Codes
----------------------------------------------------------------------------
-- Runtime errors:
errASCantConsiderAndIgnore : constant := -2720;
errASCantCompareMoreThan32k : constant := -2721;
-- Parser/Compiler errors:
errASTerminologyNestingTooDeep : constant := -2760;
errASIllegalFormalParameter : constant := -2761;
errASParameterNotForEvent : constant := -2762;
errASNoResultReturned : constant := -2763;
-- Dialect specific script errors:
-- The range -2780 thru -2799 is reserved for dialect specific error codes.
-- (Error codes from different dialects may overlap.)
-- English errors:
errASInconsistentNames : constant := -2780;
-- Component Manager & component errors
invalidComponentID : constant := -3000;
validInstancesExist : constant := -3001;
componentNotCaptured : constant := -3002;
componentDontRegister : constant := -3003;
-- Color Picker errors
firstPickerError : constant := -4000;
invalidPickerType : constant := firstPickerError;
requiredFlagsDontMatch : constant := -4001;
pickerResourceError : constant := -4002;
cantLoadPicker : constant := -4003;
cantCreatePickerWindow : constant := -4004;
cantLoadPackage : constant := -4005;
pickerCantLive : constant := -4006;
colorSyncNotInstalled : constant := -4007;
badProfileError : constant := -4008;
noHelpForItem : constant := -4009;
codecErr : constant := -8960;
noCodecErr : constant := -8961;
codecUnimpErr : constant := -8962;
codecSizeErr : constant := -8963;
codecScreenBufErr : constant := -8964;
codecImageBufErr : constant := -8965;
codecSpoolErr : constant := -8966;
codecAbortErr : constant := -8967;
codecWouldOffscreenErr : constant := -8968;
codecBadDataErr : constant := -8969;
codecDataVersErr : constant := -8970;
codecExtensionNotFoundErr : constant := -8971;
scTypeNotFoundErr : constant := codecExtensionNotFoundErr;
codecConditionErr : constant := -8972;
codecOpenErr : constant := -8973;
codecCantWhenErr : constant := -8974;
codecCantQueueErr : constant := -8975;
codecNothingToBlitErr : constant := -8976;
noDeviceForChannel : constant := -9400;
grabTimeComplete : constant := -9401;
cantDoThatInCurrentMode : constant := -9402;
notEnoughMemoryToGrab : constant := -9403;
notEnoughDiskSpaceToGrab : constant := -9404;
couldntGetRequiredComponent : constant := -9405;
badSGChannel : constant := -9406;
seqGrabInfoNotAvailable : constant := -9407;
deviceCantMeetRequest : constant := -9408;
badControllerHeight : constant := -9994;
editingNotAllowed : constant := -9995;
controllerBoundsNotExact : constant := -9996;
cannotSetWidthOfAttachedController : constant := -9997;
controllerHasFixedHeight : constant := -9998;
cannotMoveAttachedController : constant := -9999;
-- AERegistry Errors
errAEBadKeyForm : constant := -10002;
errAECantHandleClass : constant := -10010;
errAECantSupplyType : constant := -10009;
errAECantUndo : constant := -10015;
errAEEventFailed : constant := -10000;
errAEIndexTooLarge : constant := -10007;
errAEInTransaction : constant := -10011;
errAELocalOnly : constant := -10016;
errAENoSuchTransaction : constant := -10012;
errAENotAnElement : constant := -10008;
errAENotASingleObject : constant := -10014;
errAENotModifiable : constant := -10003;
errAENoUserSelection : constant := -10013;
errAEPrivilegeError : constant := -10004;
errAEReadDenied : constant := -10005;
errAETypeError : constant := -10001;
errAEWriteDenied : constant := -10006;
-- TELErr
telGenericError : constant := -1;
telNoErr : constant := 0;
telNoTools : constant := 8; -- no telephone tools found in extension folder
telBadTermErr : constant := -10001; -- invalid TELHandle or handle not found
telBadDNErr : constant := -10002; -- TELDNHandle not found or invalid
telBadCAErr : constant := -10003; -- TELCAHandle not found or invalid
telBadHandErr : constant := -10004; -- bad handle specified
telBadProcErr : constant := -10005; -- bad msgProc specified
telCAUnavail : constant := -10006; -- a CA is not available
telNoMemErr : constant := -10007; -- no memory to allocate handle
telNoOpenErr : constant := -10008; -- unable to open terminal
telBadHTypeErr : constant := -10010; -- bad hook type specified
telHTypeNotSupp : constant := -10011; -- hook type not supported by this tool
telBadLevelErr : constant := -10012; -- bad volume level setting
telBadVTypeErr : constant := -10013; -- bad volume type error
telVTypeNotSupp : constant := -10014; -- volume type not supported by this tool
telBadAPattErr : constant := -10015; -- bad alerting pattern specified
telAPattNotSupp : constant := -10016; -- alerting pattern not supported by tool
telBadIndex : constant := -10017; -- bad index specified
telIndexNotSupp : constant := -10018; -- index not supported by this tool
telBadStateErr : constant := -10019; -- bad device state specified
telStateNotSupp : constant := -10020; -- device state not supported by tool
telBadIntExt : constant := -10021; -- bad internal external error
telIntExtNotSupp : constant := -10022; -- internal external type not supported by this tool
telBadDNDType : constant := -10023; -- bad DND type specified
telDNDTypeNotSupp : constant := -10024; -- DND type is not supported by this tool
telFeatNotSub : constant := -10030; -- feature not subscribed
telFeatNotAvail : constant := -10031; -- feature subscribed but not available
telFeatActive : constant := -10032; -- feature already active
telFeatNotSupp : constant := -10033; -- feature program call not supported by this tool
telConfLimitErr : constant := -10040; -- limit specified is too high for this configuration
telConfNoLimit : constant := -10041; -- no limit was specified but required
telConfErr : constant := -10042; -- conference was not prepared
telConfRej : constant := -10043; -- conference request was rejected
telTransferErr : constant := -10044; -- transfer not prepared
telTransferRej : constant := -10045; -- transfer request rejected
telCBErr : constant := -10046; -- call back feature not set previously
telConfLimitExceeded : constant := -10047; -- attempt to exceed switch conference limits
telBadDNType : constant := -10050; -- DN type invalid
telBadPageID : constant := -10051; -- bad page ID specified
telBadIntercomID : constant := -10052; -- bad intercom ID specified
telBadFeatureID : constant := -10053; -- bad feature ID specified
telBadFwdType : constant := -10054; -- bad fwdType specified
telBadPickupGroupID : constant := -10055; -- bad pickup group ID specified
telBadParkID : constant := -10056; -- bad park id specified
telBadSelect : constant := -10057; -- unable to select or deselect DN
telBadBearerType : constant := -10058; -- bad bearerType specified
telBadRate : constant := -10059; -- bad rate specified
telDNTypeNotSupp : constant := -10060; -- DN type not supported by tool
telFwdTypeNotSupp : constant := -10061; -- forward type not supported by tool
telBadDisplayMode : constant := -10062; -- bad display mode specified
telDisplayModeNotSupp : constant := -10063; -- display mode not supported by tool
telNoCallbackRef : constant := -10064; -- no call back reference was specified, but is required
telAlreadyOpen : constant := -10070; -- terminal already open
telStillNeeded : constant := -10071; -- terminal driver still needed by someone else
telTermNotOpen : constant := -10072; -- terminal not opened via TELOpenTerm
telCANotAcceptable : constant := -10080; -- CA not "acceptable"
telCANotRejectable : constant := -10081; -- CA not "rejectable"
telCANotDeflectable : constant := -10082; -- CA not "deflectable"
telPBErr : constant := -10090; -- parameter block error, bad format
telBadFunction : constant := -10091; -- bad msgCode specified
-- telNoTools : constant := -10101; -- unable to find any telephone tools
telNoSuchTool : constant := -10102; -- unable to find tool with name specified
telUnknownErr : constant := -10103; -- unable to set config
telNoCommFolder : constant := -10106; -- Communications/Extensions Ä not found
telInitFailed : constant := -10107; -- initialization failed
telBadCodeResource : constant := -10108; -- code resource not found
telDeviceNotFound : constant := -10109; -- device not found
telBadProcID : constant := -10110; -- invalid procID
telValidateFailed : constant := -10111; -- telValidate failed
telAutoAnsNotOn : constant := -10112; -- autoAnswer in not turned on
telDetAlreadyOn : constant := -10113; -- detection is already turned on
telBadSWErr : constant := -10114; -- Software not installed properly
telBadSampleRate : constant := -10115; -- incompatible sample rate
telNotEnoughdspBW : constant := -10116; -- not enough real-time for allocation
badComponentInstance : constant := 16#80008001#;
badComponentSelector : constant := 16#80008002#;
-- Translation manager & Translation components
invalidTranslationPathErr : constant := -3025; -- Source type to destination type not a valid path
couldNotParseSourceFileErr : constant := -3026; -- Source document does not contain source type
noTranslationPathErr : constant := -3030;
badTranslationSpecErr : constant := -3031;
noPrefAppErr : constant := -3032;
buf2SmallErr : constant := -3101;
noMPPErr : constant := -3102;
ckSumErr : constant := -3103;
extractErr : constant := -3104;
readQErr : constant := -3105;
atpLenErr : constant := -3106;
atpBadRsp : constant := -3107;
recNotFnd : constant := -3108;
sktClosedErr : constant := -3109;
afpAccessDenied : constant := -5000;
afpAuthContinue : constant := -5001;
afpBadUAM : constant := -5002;
afpBadVersNum : constant := -5003;
afpBitmapErr : constant := -5004;
afpCantMove : constant := -5005;
afpDenyConflict : constant := -5006;
afpDirNotEmpty : constant := -5007;
afpDiskFull : constant := -5008;
afpEofError : constant := -5009;
afpFileBusy : constant := -5010;
afpFlatVol : constant := -5011;
afpItemNotFound : constant := -5012;
afpLockErr : constant := -5013;
afpMiscErr : constant := -5014;
afpNoMoreLocks : constant := -5015;
afpNoServer : constant := -5016;
afpObjectExists : constant := -5017;
afpObjectNotFound : constant := -5018;
afpParmErr : constant := -5019;
afpRangeNotLocked : constant := -5020;
afpRangeOverlap : constant := -5021;
afpSessClosed : constant := -5022;
afpUserNotAuth : constant := -5023;
afpCallNotSupported : constant := -5024;
afpObjectTypeErr : constant := -5025;
afpTooManyFilesOpen : constant := -5026;
afpServerGoingDown : constant := -5027;
afpCantRename : constant := -5028;
afpDirNotFound : constant := -5029;
afpIconTypeError : constant := -5030;
afpVolLocked : constant := -5031; -- Volume is Read-Only
afpObjectLocked : constant := -5032; -- Object is M/R/D/W inhibited
afpContainsSharedErr : constant := -5033; -- the folder being shared contains a shared folder
afpIDNotFound : constant := -5034;
afpIDExists : constant := -5035;
afpDiffVolErr : constant := -5036;
afpCatalogChanged : constant := -5037;
afpSameObjectErr : constant := -5038;
afpBadIDErr : constant := -5039;
afpPwdSameErr : constant := -5040; -- someone tried to change their password to the same password on a mantadory password change
afpPwdTooShortErr : constant := -5041; -- the password being set is too short: there is a minimum length that must be met or exceeded
afpPwdExpiredErr : constant := -5042; -- the password being used is too old: this requires the user to change the password before log-in can continue
afpInsideSharedErr : constant := -5043; -- the folder being shared is inside a shared folder OR the folder contains a shared folder
-- and is being moved into a shared folder OR the folder contains a shared folder and is being moved into the descendent of a shared folder.
afpInsideTrashErr : constant := -5044; -- the folder being shared is inside the trash folder OR the shared folder is being moved into
-- the trash folder OR the folder is being moved to the trash and it contains a shared folder
afpBadDirIDType : constant := -5060;
afpCantMountMoreSrvre : constant := -5061;
afpAlreadyMounted : constant := -5062;
afpSameNodeErr : constant := -5063;
-- Display Manager error codes (-6220...-6269)
kDMGenErr : constant := -6220; -- Unexpected Error
-- Mirroring-Specific Errors
kDMMirroringOnAlready : constant := -6221; -- Returned by all calls that need mirroring to be off to do their thing.
kDMWrongNumberOfDisplays : constant := -6222; -- Can only handle 2 displays for now.
kDMMirroringBlocked : constant := -6223; -- DMBlockMirroring() has been called.
kDMCantBlock : constant := -6224; -- Mirroring is already on, canŐt Block now (call DMUnMirror() first).
kDMMirroringNotOn : constant := -6225; -- Returned by all calls that need mirroring to be on to do their thing.
-- Other Display Manager Errors
kSysSWTooOld : constant := -6226; -- Missing critical pieces of System Software.
kDMSWNotInitializedErr : constant := -6227; -- Required software not initialized (eg windowmanager or display mgr).
kDMDriverNotDisplayMgrAwareErr : constant := -6228; -- Video Driver does not support display manager.
kDMDisplayNotFoundErr : constant := -6229; -- Could not find item (will someday remove).
kDMNotFoundErr : constant := -6229; -- Could not find item.
kDMDisplayAlreadyInstalledErr : constant := -6230; -- Attempt to add an already installed display.
kDMMainDisplayCannotMoveErr : constant := -6231; -- Trying to move main display (or a display mirrored to it)
kDMNoDeviceTableclothErr : constant := -6231; -- obsolete
--Gestalt error codes
gestaltUnknownErr : constant := -5550; -- value returned if Gestalt doesn't know the answer
gestaltUndefSelectorErr : constant := -5551; -- undefined selector was passed to Gestalt
gestaltDupSelectorErr : constant := -5552; -- tried to add an entry that already existed
gestaltLocationErr : constant := -5553; -- gestalt function ptr wasn't in sysheap
--PPC errors
notInitErr : constant := -900; -- PPCToolBox not initialized
nameTypeErr : constant := -902; -- Invalid or inappropriate locationKindSelector in locationName
noPortErr : constant := -903; -- Unable to open port or bad portRefNum
noGlobalsErr : constant := -904; -- The system is hosed, better re-boot
localOnlyErr : constant := -905; -- Network activity is currently disabled
destPortErr : constant := -906; -- Port does not exist at destination
sessTableErr : constant := -907; -- Out of session tables, try again later
noSessionErr : constant := -908; -- Invalid session reference number
badReqErr : constant := -909; -- bad parameter or invalid state for operation
portNameExistsErr : constant := -910; -- port is already open (perhaps in another app)
noUserNameErr : constant := -911; -- user name unknown on destination machine
userRejectErr : constant := -912; -- Destination rejected the session request
noMachineNameErr : constant := -913; -- user hasn't named his Macintosh in the Network Setup Control Panel
noToolboxNameErr : constant := -914; -- A system resource is missing, not too likely
noResponseErr : constant := -915; -- unable to contact destination
portClosedErr : constant := -916; -- port was closed
sessClosedErr : constant := -917; -- session was closed
badPortNameErr : constant := -919; -- PPCPortRec malformed
noDefaultUserErr : constant := -922; -- user hasn't typed in owners name in Network Setup Control Pannel
notLoggedInErr : constant := -923; -- The default userRefNum does not yet exist
noUserRefErr : constant := -924; -- unable to create a new userRefNum
networkErr : constant := -925; -- An error has occured in the network, not too likely
noInformErr : constant := -926; -- PPCStart failed because destination did not have inform pending
authFailErr : constant := -927; -- unable to authenticate user at destination
noUserRecErr : constant := -928; -- Invalid user reference number
badServiceMethodErr : constant := -930; -- illegal service type, or not supported
badLocNameErr : constant := -931; -- location name malformed
guestNotAllowedErr : constant := -932; -- destination port requires authentication
noMaskFoundErr : constant := -1000; -- Icon Utilties Error
dsBusError : constant := 1; -- bus error
dsAddressErr : constant := 2; -- address error
dsIllInstErr : constant := 3; -- illegal instruction error
dsZeroDivErr : constant := 4; -- zero divide error
dsChkErr : constant := 5; -- check trap error
dsOvflowErr : constant := 6; -- overflow trap error
dsPrivErr : constant := 7; -- privilege violation error
dsTraceErr : constant := 8; -- trace mode error
dsLineAErr : constant := 9; -- line 1010 trap error
dsLineFErr : constant := 10; -- line 1111 trap error
dsMiscErr : constant := 11; -- miscellaneous hardware exception error
dsCoreErr : constant := 12; -- unimplemented core routine error
dsIrqErr : constant := 13; -- uninstalled interrupt error
dsIOCoreErr : constant := 14; -- IO Core Error
dsLoadErr : constant := 15; -- Segment Loader Error
dsFPErr : constant := 16; -- Floating point error
dsNoPackErr : constant := 17; -- package 0 not present
dsNoPk1 : constant := 18; -- package 1 not present
dsNoPk2 : constant := 19; -- package 2 not present
dsNoPk3 : constant := 20; -- package 3 not present
dsNoPk4 : constant := 21; -- package 4 not present
dsNoPk5 : constant := 22; -- package 5 not present
dsNoPk6 : constant := 23; -- package 6 not present
dsNoPk7 : constant := 24; -- package 7 not present
dsMemFullErr : constant := 25; -- out of memory!
dsBadLaunch : constant := 26; -- can't launch file
dsFSErr : constant := 27; -- file system map has been trashed
dsStknHeap : constant := 28; -- stack has moved into application heap
negZcbFreeErr : constant := 33; -- ZcbFree has gone negative
dsFinderErr : constant := 41; -- can't load the Finder error
dsBadSlotInt : constant := 51; -- unserviceable slot interrupt
dsBadSANEOpcode : constant := 81; -- bad opcode given to SANE Pack4
dsBadPatchHeader : constant := 83; -- SetTrapAddress saw the Ňcome-fromÓ header
menuPrgErr : constant := 84; -- happens when a menu is purged
dsMBarNFnd : constant := 85; -- Menu Manager Errors
dsHMenuFindErr : constant := 86; -- Menu Manager Errors
dsWDEFNotFound : constant := 87; -- could not load WDEF
dsCDEFNotFound : constant := 88; -- could not load CDEF
dsMDEFNotFound : constant := 89; -- could not load MDEF
dsNoFPU : constant := 90; -- an FPU instruction was executed and the machine doesnŐt have one
dsNoPatch : constant := 98; -- Can't patch for particular Model Mac
dsBadPatch : constant := 99; -- Can't load patch resource
dsParityErr : constant := 101; -- memory parity error
dsOldSystem : constant := 102; -- System is too old for this ROM
ds32BitMode : constant := 103; -- booting in 32-bit on a 24-bit sys
dsNeedToWriteBootBlocks : constant := 104; -- need to write new boot blocks
dsNotEnoughRAMToBoot : constant := 105; -- must have at least 1.5MB of RAM to boot 7.0
dsBufPtrTooLow : constant := 106; -- bufPtr moved too far during boot
dsReinsert : constant := 30; -- request user to reinsert off-line volume
shutDownAlert : constant := 42; -- handled like a shutdown error
dsShutDownOrRestart : constant := 20000; -- user choice between ShutDown and Restart
dsSwitchOffOrRestart : constant := 20001; -- user choice between switching off and Restart
dsForcedQuit : constant := 20002; -- allow the user to ExitToShell, return if Cancel
dsRemoveDisk : constant := 20003; -- request user to remove disk from manual eject drive
dsDirtyDisk : constant := 20004; -- request user to return a manually-ejected dirty disk
dsShutDownOrResume : constant := 20109; -- allow user to return to Finder or ShutDown
dsSCSIWarn : constant := 20010; -- Portable SCSI adapter warning.
-- System Errors that are used after MacsBug is loaded to put up dialogs since these should not cause MacsBug to stop,
-- they must be in the range (30, 42, 16384-32767) negative numbers add to an existing dialog without putting up a whole new dialog
dsMacsBugInstalled : constant := -10; -- say ŇMacsBug InstalledÓ
dsDisassemblerInstalled : constant := -11; -- say ŇDisassembler InstalledÓ
dsExtensionsDisabled : constant := -13; -- say ŇExtensions DisabledÓ
dsGreeting : constant := 40; -- welcome to Macintosh greeting
dsSysErr : constant := 32767; -- general system error
-- old names here for compatibilityŐs sake
WDEFNFnd : constant := dsWDEFNotFound;
CDEFNFnd : constant := dsCDEFNotFound;
dsNotThe1 : constant := 31; -- not the disk I wanted
dsBadStartupDisk : constant := 42; -- unable to mount boot volume (sad Mac only)
dsSystemFileErr : constant := 43; -- canŐt find System file to open (sad Mac only)
dsHD20Installed : constant := -12; -- say ŇHD20 StartupÓ
mBarNFnd : constant := -126; -- system error code for MBDF not found
hMenuFindErr : constant := -127; -- could not find HMenu's parent in MenuKey
userBreak : constant := -490; -- user debugger break
strUserBreak : constant := -491; -- user debugger break; display string on stack
exUserBreak : constant := -492; -- user debugger break; execute debugger commands on stack
-- Reserved values for internal "warnings".
fragNoErr : constant := 0;
fragContextNotFound : constant := -2800; -- CFM error codes
fragConnectionIDNotFound : constant := -2801; -- contextID was not valid
fragSymbolNotFound : constant := -2802; -- connecionID was not valid
fragSectionNotFound : constant := -2803; -- symbol was not found in connection
fragLibNotFound : constant := -2804; -- section was not found
fragDupRegLibName : constant := -2805; -- library name not found in Frag registry
fragFormatUnknown : constant := -2806; -- registered name already in use
fragHadUnresolveds : constant := -2807; -- fragment container format unknown
fragUnused1 : constant := -2808; -- loaded fragment had "hard" unresolved imports
fragNoMem : constant := -2809; -- unused
fragNoAddrSpace : constant := -2810; -- out of memory for interal bookkeeping
fragNoContextIDs : constant := -2811; -- out of memory in user's address space for loadable section
fragObjectInitSeqErr : constant := -2812; -- no more context idŐs
fragImportTooOld : constant := -2813; -- order error during user initialization function invocation
fragImportTooNew : constant := -2814; -- import library was too old and therefore incompatible
fragInitLoop : constant := -2815; -- import library was too new and therefore incompatible
fragInitRtnUsageErr : constant := -2816; -- circularity detected in mandatory initialization order
fragLibConnErr : constant := -2817; -- boot library has initialization routine
fragMgrInitErr : constant := -2818; -- error connecting to library (error occured in sub prepare)
fragConstErr : constant := -2819; -- error in initailization of this manager
fragCorruptErr : constant := -2820; -- internal inconstistancy
fragUserInitProcErr : constant := -2821; -- fragment container corrupted (known format)
fragAppNotFound : constant := -2822; -- user intialization routine did not return noErr
fragArchError : constant := -2823; -- no application found in cfrg (for Process Manager)
fragInvalidFragmentUsage : constant := -2824; -- fragment targeted for an unacceptable architecture
fragLastErrCode : constant := -2899; -- ie: an application's main fragment had no entry point
-- or - an accerated resource had no entry point,
-- or it had a termination routine, etc...
-- last reserved error code number
badDragRefErr : constant := -1850; -- Drag Manager error codes
badDragItemErr : constant := -1851; -- unknown drag reference
badDragFlavorErr : constant := -1852; -- unknown drag item reference
duplicateFlavorErr : constant := -1853; -- unknown flavor type
cantGetFlavorErr : constant := -1854; -- flavor type already exists
duplicateHandlerErr : constant := -1855; -- error while trying to get flavor data
handlerNotFoundErr : constant := -1856; -- handler already exists
dragNotAcceptedErr : constant := -1857; -- handler not found
-- drag was not accepted by receiver
mmInternalError : constant := -2526;
-- Mixed Mode error codes
tsmComponentNoErr : constant := 0; -- error codes
tsmUnsupScriptLanguageErr : constant := -2500;
tsmInputMethodNotFoundErr : constant := -2501;
tsmNotAnAppErr : constant := -2502; -- component result : constant := no error
tsmAlreadyRegisteredErr : constant := -2503; -- not an application error
tsmNeverRegisteredErr : constant := -2504; -- want to register again error
tsmInvalidDocIDErr : constant := -2505; -- app never registered error (not TSM aware)
tsmTSMDocBusyErr : constant := -2506; -- invalid TSM documentation id
tsmDocNotActiveErr : constant := -2507; -- document is still active
tsmNoOpenTSErr : constant := -2508; -- document is NOT active
tsmCantOpenComponentErr : constant := -2509; -- no open text service
tsmTextServiceNotFoundErr : constant := -2510; -- canŐt open the component
tsmDocumentOpenErr : constant := -2511; -- no text service found
tsmUseInputWindowErr : constant := -2512; -- there are open documents
tsmTSHasNoMenuErr : constant := -2513; -- not TSM aware because we are using input window
tsmTSNotOpenErr : constant := -2514; -- the text service has no menu
tsmComponentAlreadyOpenErr : constant := -2515; -- text service is not open
tsmInputMethodIsOldErr : constant := -2516; -- text service already opened for the document
tsmScriptHasNoIMErr : constant := -2517; -- returned by GetDefaultInputMethod
tsmUnsupportedTypeErr : constant := -2518; -- script has no imput method or is using old IM
tsmUnknownErr : constant := -2519; -- unSupported interface type error
errOffsetInvalid : constant := -1800;
errOffsetIsOutsideOfView : constant := -1801;
errTopOfDocument : constant := -1810;
errTopOfBody : constant := -1811;
errEndOfDocument : constant := -1812;
errEndOfBody : constant := -1813;
-- any other errors
rcDBNull : constant := -800;
rcDBValue : constant := -801;
rcDBError : constant := -802;
rcDBBadType : constant := -803;
rcDBBreak : constant := -804;
rcDBExec : constant := -805;
rcDBBadSessID : constant := -806;
rcDBBadSessNum : constant := -807; -- Database access error codes
rcDBBadDDEV : constant := -808; -- bad session number for DBGetConnInfo
rcDBAsyncNotSupp : constant := -809; -- bad ddev specified on DBInit
rcDBBadAsyncPB : constant := -810; -- ddev does not support async calls
rcDBNoHandler : constant := -811; -- tried to kill a bad pb
rcDBWrongVersion : constant := -812; -- no app handler for specified data type
rcDBPackNotInited : constant := -813; -- incompatible versions
-- attempt to call other routine before InitDBPack
eLenErr : constant := -92; -- ENET error codes
eMultiErr : constant := -91; -- Length error ddpLenErr
-- Multicast address error ddpSktErr
dsBadLibrary : constant := 1010; -- DS Errors which are specific to the new runtime model introduced with PowerPC
dsMixedModeFailure : constant := 1011; -- Bad shared library
procedure SysError
(errorCode : in Short_Integer);
pragma Import (C, SysError, "SysError", "SysError");
end Errors;