summaryrefslogtreecommitdiff
path: root/inc/AEEStdErr.h
blob: c93ac4982a2af801826cb452762697c854dc4d37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
/*
* Copyright (c) 2017, The Linux Foundation. All rights reserved.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of the copyright holder nor the names of its contributors
* may be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef AEESTDERR_H
#define AEESTDERR_H

//
// Basic Error Codes
//
//

#define  AEE_SUCCESS              0  // no error
#define  AEE_EFAILED              1  // general failure
#define  AEE_ENOMEMORY            2  // insufficient RAM
#define  AEE_ECLASSNOTSUPPORT     3  // specified class unsupported
#define  AEE_EVERSIONNOTSUPPORT   4  // version not supported
#define  AEE_EALREADYLOADED       5  // object already loaded
#define  AEE_EUNABLETOLOAD        6  // unable to load object/applet
#define  AEE_EUNABLETOUNLOAD      7  // unable to unload object/applet
#define  AEE_EALARMPENDING        8  // alarm is pending
#define  AEE_EINVALIDTIME         9  // invalid time
#define  AEE_EBADCLASS            10 // NULL class object
#define  AEE_EBADMETRIC           11 // invalid metric specified
#define  AEE_EEXPIRED             12 // App/Component Expired
#define  AEE_EBADSTATE            13 // invalid state
#define  AEE_EBADPARM             14 // invalid parameter
#define  AEE_ESCHEMENOTSUPPORTED  15 // invalid URL scheme
#define  AEE_EBADITEM             16 // invalid item
#define  AEE_EINVALIDFORMAT       17 // invalid format
#define  AEE_EINCOMPLETEITEM      18 // incomplete item
#define  AEE_ENOPERSISTMEMORY     19 // insufficient flash
#define  AEE_EUNSUPPORTED         20 // API is not supported
#define  AEE_EPRIVLEVEL           21 // privileges are insufficient for this operation
#define  AEE_ERESOURCENOTFOUND    22
#define  AEE_EREENTERED           23
#define  AEE_EBADTASK             24
#define  AEE_EALLOCATED           25 // App/Module left memory allocated when released
#define  AEE_EALREADY             26 // operation is already in progress
#define  AEE_EADSAUTHBAD          27 // ADS mutual authorization failed
#define  AEE_ENEEDSERVICEPROG     28 // need service programming
#define  AEE_EMEMPTR              29 // bad memory pointer
#define  AEE_EHEAP                30 // heap corruption
#define  AEE_EIDLE                31 // context (system, interface, etc.) is idle
#define  AEE_EITEMBUSY            32 // context (system, interface, etc.) is busy
#define  AEE_EBADSID              33 // invalid subscriber ID
#define  AEE_ENOTYPE              34 // no type detected/found
#define  AEE_ENEEDMORE            35 // need more data/info
#define  AEE_EADSCAPS             36 // ADS Capabilities do not match those required for phone
#define  AEE_EBADSHUTDOWN         37 // App failed to close properly
#define  AEE_EBUFFERTOOSMALL      38 // destination buffer given is too small
#define  AEE_ENOSUCH              39 // no such name/port/socket/service exists or valid
#define  AEE_EACKPENDING          40 // ACK pending on application
#define  AEE_ENOTOWNER            41 // not an owner authorized to perform the operation
#define  AEE_EINVALIDITEM         42 // current item is invalid
#define  AEE_ENOTALLOWED          43 // not allowed to perform the operation
#define  AEE_EBADHANDLE           44 // invalid handle
#define  AEE_EOUTOFHANDLES        45 // out of handles
#define  AEE_EINTERRUPTED         46 // waitable call is interrupted
#define  AEE_ENOMORE              47 // no more items available -- reached end
#define  AEE_ECPUEXCEPTION        48 // a CPU exception occurred
#define  AEE_EREADONLY            49 // Cannot change read-only object or parameter
// a moratorium on adding to AEEStdErr.h is in effect, 50 and later are
//  already spoken for

#define  AEE_EWOULDBLOCK         516 // Operation would block if not non-blocking; wait and try again

/*
============================================================================
   ERRORS DOCUMENTATION
==============================================================================

Error Codes

Description:
This topic lists the categories of error codes that Brew MP returns. The topic for each
category of error code includes the name of each error, the code that is associated with
the error, and a description of the error.

===H2>
List of Error Code Types
===/H2>
===p>
The categories of error codes include: ~
~

AddrBook error codes  ~
AddrInfo error codes ~
AEE_IS_REMOTE_ERR(): ~
AEE_IS_REMOTE_ERR_PRE(): ~
Basic AEE Error Codes   ~
Database error codes  ~
dbc Error Codes ~
DNS Resolver error codes ~
File error codes  ~
FS AEE Error Codes ~
ICamera error codes  ~
ICMP error codes ~
ILicenseSystem Error Codes ~
Indeterminate errors: (transport failure) ~
ISQL Error Codes ~
ISVGDOM Error Codes: ~
ISSL error codes  ~
IX509Chain error codes   ~
ModCollector Errors  ~
ModInstallerCntx Errors ~
ModMover Errors ~
Multimedia error codes  ~
Network AEE error codes ~
Network subsystem error codes ~
pim_IMessageStore Error Codes ~
pim_IRecordStore Error Codes ~
Port AEE Error Codes  ~
PosDet error codes  ~
Post-invocation errors: (remote errors) ~
Pre-invocation errors: (remote errors) ~
QoS error codes ~
Remote error codes: ~
SSL error codes  ~
VOCODER error codes  ~
VolumeDB Errors   ~
Web error codes ~

*

==================================================================
Basic AEE Error Codes

Description:
This section lists the set of basic AEE errors returned, the codes associated
with the errors, and descriptions of the errors.

Definition:

Error                   Code   Description

AEE_SUCCESS             0      operation Successful
AEE_EFAILED             1      general failure
AEE_ENOMEMORY           2      insufficient RAM
AEE_ECLASSNOTSUPPORT    3      specified class unsupported
AEE_EVERSIONNOTSUPPORT  4      version not supported
AEE_EALREADYLOADED      5      object already loaded
AEE_EUNABLETOLOAD       6      unable to load object/applet
AEE_EUNABLETOUNLOAD     7      unable to unload object/applet
AEE_EALARMPENDING       8      alarm is pending
AEE_EINVALIDTIME        9      invalid time
AEE_EBADCLASS           10     NULL class object
AEE_EBADMETRIC          11     invalid metric specified
AEE_EEXPIRED            12     Application/Component Expired
AEE_EBADSTATE           13     invalid state
AEE_EBADPARM            14     invalid parameter
AEE_ESCHEMENOTSUPPORTED 15     invalid URL scheme
AEE_EBADITEM            16     invalid item
AEE_EINVALIDFORMAT      17     invalid format
AEE_EINCOMPLETEITEM     18     incomplete item
AEE_ENOPERSISTMEMORY    19     insufficient flash
AEE_EUNSUPPORTED        20     API is not supported
AEE_EPRIVLEVEL          21     application privileges are insufficient for this operation
AEE_ERESOURCENOTFOUND   22     unable to find specified resource
AEE_EREENTERED          23     non re-entrant API re-entered
AEE_EBADTASK            24     API called in wrong task context
AEE_EALLOCATED          25     Application/Module left memory allocated when released
AEE_EALREADY            26     operation is already in progress
AEE_EADSAUTHBAD         27     ADS mutual authorization failed
AEE_ENEEDSERVICEPROG    28     need service programming
AEE_EMEMPTR             29     bad memory pointer
AEE_EHEAP               30     heap corruption
AEE_EIDLE               31     context (system, interface, etc.) is idle
AEE_EITEMBUSY           32     context (system, interface, etc.) is busy
AEE_EBADSID             33     invalid subscriber ID
AEE_ENOTYPE             34     no type detected/found
AEE_ENEEDMORE           35     need more data/info
AEE_EADSCAPS            36     capabilities do not match those required
AEE_EBADSHUTDOWN        37     application failed to close properly
AEE_EBUFFERTOOSMALL     38     destination buffer given is too small
AEE_ENOSUCH             39     no such name/port/socket/service exists or valid
AEE_EACKPENDING         40     ACK pending on application
AEE_ENOTOWNER           41     not an owner authorized to perform the operation
AEE_EINVALIDITEM        42     current item is invalid
AEE_ENOTALLOWED         43     not allowed to perform the operation
AEE_EBADHANDLE          44     invalid handle
AEE_EOUTOFHANDLES       45     out of handles
AEE_EINTERRUPTED        46     waitable call is interrupted
AEE_ENOMORE             47     no more items available -- reached end
AEE_ECPUEXCEPTION       48     a CPU exception occurred
AEE_EREADONLY           49     cannot change read-only object or parameter
AEE_EWOULDBLOCK         516    operation would block if not non-blocking; wait and try again

Comments:
These Brew MP error codes have an up-to-date naming convention, and replace older BREW error
codes that use a naming convention that did not include the "AEE_" prefix.

See Also:
  Error Codes

==================================================================
*/
#endif /* #ifndef AEESTDERR_H */