Documentation  |   Table of Contents   |  < Previous   |  Next >   |  Index

18    Common Error Codes

System Management

Exploring Palm OS®

The header file CmnErrors.h declares the error code classes—base values from which all Palm OS error codes are defined—as well as many error codes that are commonly used throughout Palm OS.

Because CmnErrors.h declares only constants, this chapter consists of a single section:

Common Error Codes Constants

Common Error Codes Constants ^TOP^

Error Code Classes ^TOP^

Purpose

These constants define base values from which error code values are derived.

Declared In

CmnErrors.h

Constants

#define actvErrorClass 0x80002000
Activation application errors
#define almErrorClass 0x80000900
Alarm Manager errors
#define amErrorClass 0x80003D00
#define appErrorClass 0x80008000
Application-defined errors
#define appMgrErrorClass 0x80004000
#define attnErrorClass 0x80002E00
Attention Manager errors
#define azmErrorClass 0x80003C00
#define bltErrorClass 0x80002300
Blitter Driver errors
#define blthErrorClass 0x80003100
Bluetooth Library errors
#define bndErrorClass 0x80004A00
Binder Errors.
#define catmErrorClass 0x80004700
#define certErrorClass 0x80004800
#define cmpErrorClass 0x80000D00
Connection Manager (HotSync) errors
#define cncErrorClass 0x80001F00
Connection Manager (serial communication) errors
#define cpmErrorClass 0x80003800
Cryptographic Provider Manager errors
#define dalErrorClass 0x8000FF00
DAL Errors.
#define dirErrorClass 0x80003E00
#define dispErrorClass 0x80002200
Display Driver errors
#define dlkErrorClass 0x80000E00
Desktop Link Manager errors
#define dmErrorClass 0x80000200
Data Manager errors
#define drvrErrorClass 0x80004500
#define em68kErrorClass 0x80003400
#define emuErrorClass 0x80001C00
Emulator Control Manager errors
#define errInfoClass 0x80007F00
#define evtErrorClass 0x80000700
System Event Manager errors
#define exgErrorClass 0x80001500
Exchange Manager errors
#define expErrorClass 0x80002900
Expansion Manager errors
#define fileErrorClass 0x80001600
File Stream Manager errors
#define flpErrorClass 0x80000680
Floating Point Library errors
#define flshErrorClass 0x80001D00
Flash Manager errors
#define fplErrorClass 0x80000600
Old Floating Point Library errors
#define ftrErrorClass 0x80000C00
Feature Manager errors
#define grfErrorClass 0x80001000
Graffiti Manager errors
#define grmlErrorClass 0x80003500
#define halErrorClass 0x80003B00
#define hsExgErrorClass 0x80004E00
#define htalErrorClass 0x80001300
HTAL Library errors
#define HttpErrorClass 0x80004C00
#define hwrErrorClass 0x80003000
Handwriting Recognition Manager errors
#define inetErrorClass 0x80001400
INet Library errors
#define intlErrorClass 0x80002C00
International Manager errors
#define iosErrorClass 0x80004200
#define IrCommErrorClass 0x80003700
#define IrErrorClass 0x80003600
#define kalErrorClass 0x80003A00
#define lmErrorClass 0x80002B00
Locale Manager errors
#define lz77ErrorClass 0x80002700
LZ77 Library errors
#define mdmErrorClass 0x80001100
Modem Manager errors
#define mediaErrorClass 0x80004600
Media Manager Errors.
#define memErrorClass 0x80000100
Memory Manager errors
#define menuErrorClass 0x80002600
Menu Manager errors
#define netErrorClass 0x80001200
Net Library errors
#define oemErrorClass 0x80007000
OEM/Licensee errors
#define omErrorClass 0x80002500
Overlay Manager errors
#define padErrorClass 0x80000F00
PAD Manager errors
#define pdiErrorClass 0x80002D00
PDI Library errors
#define penErrorClass 0x80000B00
Pen Manager errors
#define perfErrorClass 0x80004400
#define pinsErrorClass 0x80005000
#define posixErrorClass 0x80005300
#define pppErrorClass 0x80004F00
#define pwrErrorClass 0x80001E00
Power Manager errors
#define radioErrorClass 0x80002100
Radio Manager (library) errors
#define ralErrorClass 0x80004100
#define regexpErrorClass 0x80005200
#define rfutErrorClass 0x80001700
RFUT Library errors
#define secErrorClass 0x80001B00
Security Library errors
#define secSvcsErrorClass 0x80004900
#define serErrorClass 0x80000300
Serial Manager errors
#define signErrorClass 0x80004300
#define slkErrorClass 0x80000400
Serial Link Manager errors
#define smsErrorClass 0x80002800
SMS Library errors
#define sndErrorClass 0x80000800
Sound Manager errors
#define sslErrorClass 0x80003900
SSL errors
#define statErrorClass 0x80005100
#define svcErrorClass 0x80003F00
#define syncMgrErrorClass 0x80004B00
#define sysErrorClass 0x80000500
System Manager errors
#define telErrorClass 0x80002F00
Telephony Manager errors
#define timErrorClass 0x80000A00
Time Manager errors
#define tlsErrorClass 0x80003300
#define tsmErrorClass 0x80001900
Text Services Manager errors
#define txtErrorClass 0x80001800
Text Manager errors
#define udaErrorClass 0x80003200
UDA Manager errors
#define vfsErrorClass 0x80002A00
Virtual Filesystem Manager and Filesystem Library errors
#define webErrorClass 0x80001A00
Web Library errors
#define winErrorClass 0x80002400
Window Manager errors
#define xSyncErrorClass 0x80004D00

^TOP^

Purpose

Declared In

CmnErrors.h

Constants

#define errResponseBreak68K 0x00000004
#define errResponseBreakBoth (errResponseBreakNative + errResponseBreak68K)
#define errResponseBreakNative 0x00000002
#define errResponseDefaultSet (errResponseBreakNative | errResponseKillProcess | errResponseSoftReset | errResponseShutdown )
#define errResponseIgnore 0x00000008
#define errResponseKillProcess 0x00000010
#define errResponseShutdown 0x00000040
#define errResponseSoftReset 0x00000020
#define errResponseTryHighLevel 0x00000001

^TOP^

Purpose

Declared In

CmnErrors.h

Constants

#define errNone 0x00000000
No error.
#define errorClassMask 0xFFFFFF00
AND this mask with an error code value to determine the error's class. See "Error Code Classes" for a list of common error classes.
#define errReportStripContext 0x00000001

Binder Errors ^TOP^

Purpose

Declared In

CmnErrors.h

Constants

#define bndErrBadInterface ((status_t)(bndErrorClass | 7))
#define bndErrBadTransact ((status_t)(bndErrorClass | 5))
#define bndErrBadType ((status_t)(bndErrorClass | 2))
#define bndErrDead ((status_t)(bndErrorClass | 3))
#define bndErrMissingArg ((status_t)(bndErrorClass | 1))
#define bndErrOutOfStack ((status_t)(bndErrorClass | 10))
#define bndErrTooManyLoopers ((status_t)(bndErrorClass | 6))
#define bndErrUnknownMethod ((status_t)(bndErrorClass | 8))
#define bndErrUnknownProperty ((status_t)(bndErrorClass | 9))
#define bndErrUnknownTransact ((status_t)(bndErrorClass | 4))

DAL Errors ^TOP^

Purpose

Declared In

CmnErrors.h

Constants

#define kDALError ((status_t)(dalErrorClass | 0x00FF))
#define kDALTimeout ((status_t)(sysErrorClass | 1))

Media Manager Errors ^TOP^

Purpose

Errors generated by the Media Manager.

Declared In

CmnErrors.h

Constants

#define mediaErrAlreadyConnected ((status_t)(mediaErrorClass | 4))
#define mediaErrAlreadyVisited ((status_t)(mediaErrorClass | 2))
#define mediaErrFormatMismatch ((status_t)(mediaErrorClass | 1))
#define mediaErrNoBufferSource ((status_t)(mediaErrorClass | 6))
#define mediaErrNotConnected ((status_t)(mediaErrorClass | 5))
#define mediaErrStreamExhausted ((status_t)(mediaErrorClass | 3))

Purpose

Declared In

CmnErrors.h

Constants

#define regexpErrCorruptedOpcode ((status_t)(regexpErrorClass | 16))
#define regexpErrCorruptedPointers ((status_t)(regexpErrorClass | 15))
#define regexpErrCorruptedProgram ((status_t)(regexpErrorClass | 13))
#define regexpErrInternalError ((status_t)(regexpErrorClass | 10))
#define regexpErrInvalidBracketRange ((status_t)(regexpErrorClass | 8))
#define regexpErrJunkOnEnd ((status_t)(regexpErrorClass | 4))
#define regexpErrMemoryCorruption ((status_t)(regexpErrorClass | 14))
#define regexpErrNestedStarQuestionPlus ((status_t)(regexpErrorClass | 6))
#define regexpErrQuestionPlusStarFollowsNothing ((status_t)(regexpErrorClass | 11))
#define regexpErrStarPlusOneOperandEmpty ((status_t)(regexpErrorClass | 5))
#define regexpErrTooBig ((status_t)(regexpErrorClass | 2))
#define regexpErrTooManyParenthesis ((status_t)(regexpErrorClass | 3))
#define regexpErrTrailingBackslash ((status_t)(regexpErrorClass | 12))
#define regexpErrUnmatchedBracket ((status_t)(regexpErrorClass | 9))
#define regexpErrUnmatchedParenthesis ((status_t)(regexpErrorClass | 1))

System Errors ^TOP^

Purpose

General system errors.

Declared In

CmnErrors.h

Constants

#define sysErrBufTooSmall ((status_t)(sysErrorClass | 13))
#define sysErrCPUArchitecture ((status_t)(sysErrorClass | 40))
The program requires a different CPU architecture to run.
#define sysErrDynamicLinkerError ((status_t)(sysErrorClass | 38))
#define sysErrInternalError ((status_t)(sysErrorClass | 37))
#define sysErrInvalidSignature ((status_t)(sysErrorClass | 36))
#define sysErrLibNotFound ((status_t)(sysErrorClass | 10))
#define sysErrModuleFound68KCode ((status_t)(sysErrorClass | 33))
#define sysErrModuleIncompatible ((status_t)(sysErrorClass | 32))
#define sysErrModuleInvalid ((status_t)(sysErrorClass | 31))
#define sysErrModuleNotFound sysErrLibNotFound
#define sysErrModuleRelocationError ((status_t)(sysErrorClass | 34))
#define sysErrNoFreeLibSlots ((status_t)(sysErrorClass | 9))
#define sysErrNoFreeRAM ((status_t)(sysErrorClass | 4))
#define sysErrNoFreeResource ((status_t)(sysErrorClass | 3))
#define sysErrNoGlobalStructure ((status_t)(sysErrorClass | 35))
#define sysErrNotAllowed ((status_t)(sysErrorClass | 5))
#define sysErrNotInitialized ((status_t)(sysErrorClass | 30))
#define sysErrOSVersion ((status_t)(sysErrorClass | 53))
The program requires a higher version of the operating system in order to run.
#define sysErrOutOfOwnerIDs ((status_t)(sysErrorClass | 8))
#define sysErrParamErr ((status_t)(sysErrorClass | 2))
#define sysErrPrefNotFound ((status_t)(sysErrorClass | 14))
#define sysErrRAMModuleNotAllowed ((status_t)(sysErrorClass | 39))
A RAM-based module cannot be loaded when the device is booted into ROM-only mode
#define sysErrRomIncompatible ((status_t)(sysErrorClass | 12))
#define sysErrTimeout ((status_t)(sysErrorClass | 1))
#define sysErrWeakRefGone ((status_t)(sysErrorClass | 52))
The function is holding a weak reference, but the referred-to object is gone.
#define sysNotifyErrBroadcastBusy ((status_t)(sysErrorClass | 19))
#define sysNotifyErrBroadcastCancelled ((status_t)(sysErrorClass | 20))
#define sysNotifyErrDuplicateEntry ((status_t)(sysErrorClass | 17))
#define sysNotifyErrEntryNotFound ((status_t)(sysErrorClass | 16))
#define sysNotifyErrNoServer ((status_t)(sysErrorClass | 21))
#define sysNotifyErrNoStackSpace ((status_t)(sysErrorClass | 29))
#define sysNotifyErrQueueEmpty ((status_t)(sysErrorClass | 28))
#define sysNotifyErrQueueFull ((status_t)(sysErrorClass | 27))

^TOP^

Purpose

Declared In

CmnErrors.h

Constants

#define ECANCEL 5
#define ENOTSUP 45
#define EWOULDBLOCK EAGAIN