00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef _SUPPORT_ERRORS_H
00014 #define _SUPPORT_ERRORS_H
00015
00025 #include <stdint.h>
00026 #include <limits.h>
00027 #include <BuildDefaults.h>
00028 #include <PalmTypes.h>
00029
00030 #include <CmnErrors.h>
00031
00032
00033
00035 enum general_error_codes_enum
00036 {
00037 B_NO_MEMORY = sysErrNoFreeRAM,
00038 B_BAD_VALUE = sysErrParamErr,
00039 B_NOT_ALLOWED = sysErrNotAllowed,
00040 B_TIMED_OUT = sysErrTimeout,
00041 B_BAD_INDEX = sysErrBadIndex,
00042 B_BAD_TYPE = sysErrBadType,
00043 B_MISMATCHED_VALUES = sysErrMismatchedValues,
00044 B_NAME_NOT_FOUND = sysErrNameNotFound,
00045 B_NAME_IN_USE = sysErrNameInUse,
00046 B_CANCELED = sysErrCanceled,
00047 B_NO_INIT = sysErrNoInit,
00048 B_PERMISSION_DENIED = sysErrPermissionDenied,
00049 B_BAD_DATA = sysErrBadData,
00050 B_DATA_TRUNCATED = sysErrDataTruncated,
00051 B_UNSUPPORTED = sysErrUnsupported,
00052 B_WOULD_BLOCK = sysErrWouldBlock,
00053 B_BUSY = sysErrBusy,
00054 B_IO_ERROR = sysErrIO,
00055 B_DONT_DO_THAT = sysErrDontDoThat,
00056 B_BAD_DESIGN_ENCOUNTERED = sysErrBadDesignEncountered,
00057 B_WEAK_REF_GONE = sysErrWeakRefGone,
00058 B_END_OF_DATA = sysErrEndOfData,
00059 B_INTERRUPTED = sysErrInterrupted,
00061
00062 B_BROKEN_PIPE = sysErrBrokenPipe,
00063 B_ENTRY_NOT_FOUND = sysErrEntryNotFound,
00064 B_ENTRY_EXISTS = sysErrEntryExists,
00065 B_NAME_TOO_LONG = sysErrNameTooLong,
00066 B_OUT_OF_RANGE = sysErrOutOfRange,
00068 B_ERROR = -1,
00069 B_OK = errNone,
00070 B_NO_ERROR = errNone
00071 };
00072
00073
00074
00076 enum media_error_codes_enum
00077 {
00078 B_MEDIA_FORMAT_MISMATCH = mediaErrFormatMismatch,
00079 B_MEDIA_ALREADY_VISITED = mediaErrAlreadyVisited,
00080 B_MEDIA_STREAM_EXHAUSTED = mediaErrStreamExhausted,
00081 B_MEDIA_ALREADY_CONNECTED = mediaErrAlreadyConnected,
00082 B_MEDIA_NOT_CONNECTED = mediaErrNotConnected,
00083 B_MEDIA_NO_BUFFER_SOURCE = mediaErrNoBufferSource,
00084 B_MEDIA_BUFFER_FLOW_MISMATCH = mediaErrBufferFlowMismatch
00085 };
00086
00087
00088
00090 enum www_error_codes_enum
00091 {
00092 B_INVALID_URL = exgErrInvalidURL,
00093 B_INVALID_SCHEME = exgErrInvalidScheme
00094 };
00095
00096
00097
00098
00100 enum regexp_error_codes_enum
00101 {
00102 B_REGEXP_UNMATCHED_PARENTHESIS = regexpErrUnmatchedParenthesis,
00103 B_REGEXP_TOO_BIG = regexpErrTooBig,
00104 B_REGEXP_TOO_MANY_PARENTHESIS = regexpErrTooManyParenthesis,
00105 B_REGEXP_JUNK_ON_END = regexpErrJunkOnEnd,
00106 B_REGEXP_STAR_PLUS_OPERAND_EMPTY = regexpErrStarPlusOneOperandEmpty,
00107 B_REGEXP_NESTED_STAR_QUESTION_PLUS = regexpErrNestedStarQuestionPlus,
00108 B_REGEXP_INVALID_BRACKET_RANGE = regexpErrInvalidBracketRange,
00109 B_REGEXP_UNMATCHED_BRACKET = regexpErrUnmatchedBracket,
00110 B_REGEXP_INTERNAL_ERROR = regexpErrInternalError,
00111 B_REGEXP_QUESTION_PLUS_STAR_FOLLOWS_NOTHING = regexpErrQuestionPlusStarFollowsNothing,
00112 B_REGEXP_TRAILING_BACKSLASH = regexpErrTrailingBackslash,
00113 B_REGEXP_CORRUPTED_PROGRAM = regexpErrCorruptedProgram,
00114 B_REGEXP_MEMORY_CORRUPTION = regexpErrMemoryCorruption,
00115 B_REGEXP_CORRUPTED_POINTERS = regexpErrCorruptedPointers,
00116 B_REGEXP_CORRUPTED_OPCODE = regexpErrCorruptedOpcode
00117 };
00118
00119
00120
00122 enum binder_error_codes_enum
00123 {
00124 B_BINDER_MISSING_ARG = bndErrMissingArg,
00125 B_BINDER_BAD_TYPE = bndErrBadType,
00126 B_BINDER_DEAD = bndErrDead,
00127 B_BINDER_UNKNOWN_TRANSACT = bndErrUnknownTransact,
00128 B_BINDER_BAD_TRANSACT = bndErrBadTransact,
00129 B_BINDER_TOO_MANY_LOOPERS = bndErrTooManyLoopers,
00130 B_BINDER_BAD_INTERFACE = bndErrBadInterface,
00131 B_BINDER_UNKNOWN_METHOD = bndErrUnknownMethod,
00132 B_BINDER_UNKNOWN_PROPERTY = bndErrUnknownProperty,
00133 B_BINDER_OUT_OF_STACK = bndErrOutOfStack,
00134 B_BINDER_INC_STRONG_FAILED = bndErrIncStrongFailed,
00135 B_BINDER_READ_NULL_VALUE = bndErrReadNullValue
00136 };
00137
00138 #define B_JPARKS_BROKE_IT B_BROKEN_PIPE
00139
00140
00141
00142
00145 #endif // _SUPPORT_ERRORS_H