sync with master
[platform/framework/native/appfw.git] / inc / FBaseErrors.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18 /**
19  * @file                FBaseErrors.h
20  * @brief               This header file defines error codes.
21  *
22  * This header file contains the definitions of error codes.
23  */
24 #ifndef _FBASE_ERRORS_H_
25 #define _FBASE_ERRORS_H_
26
27 #include <FBaseErrorDefine.h>
28
29
30 //----------------------------------------------------------------------------A
31 /** (specialized) Thrown when network address is changed externally. */
32 #define E_ADDRESS_CHANGED               (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1100))
33
34 /** Thrown when the target is bounded to another source. */
35 #define E_ALREADY_BOUND                 (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1101))
36
37 /** Thrown when the target is connected to another source. */
38 #define E_ALREADY_CONNECTED             (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1102))
39
40 /** Thrown when the target is already opened. */
41 #define E_ALREADY_OPENED                (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1103))
42
43 /** Thrown when the authentication request fails. */
44 #define E_AUTHENTICATION                (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1104))
45
46 /** Thrown when the required application is not installed. */
47 #define E_APP_NOT_INSTALLED             (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1105))
48
49 /** Thrown when the specified instance is already set to other values, instances or resources. */
50 #define E_ALREADY_SET                   (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1106))
51
52 /** Thrown when a specified account already exists. */
53 #define E_ACCOUNT_ALREADY_EXIST         (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1107))
54
55 /** Thrown when a required account does not exist. */
56 #define E_ACCOUNT_NOT_FOUND             (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1108))
57
58
59 //----------------------------------------------------------------------------B
60
61 //----------------------------------------------------------------------------C
62 /** (specialized) ... */
63 #define E_CHUNKED_TRANSACTION           (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1300))
64
65 /** Thrown when the connection is busy, so cannot process the new request. */
66 #define E_CONNECTION_BUSY               (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1301))
67
68 /** Thrown when the connection to the specific destination fails. */
69 #define E_CONNECTION_FAILED             (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1302))
70
71 /** Thrown when the connection is reset while the other thread is still
72  * working on it. */
73 #define E_CONNECTION_RESET              (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1303))
74
75 /** Thrown when the token is expired. */
76 #define E_CREDENTIAL_EXPIRED            (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1304))
77
78 /** The server certificate verification has failed. */
79 #define E_CERTIFICATE_VERIFICATION_FAILED       (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1305))
80
81 /** Thrown when the context data is not available. */
82 #define E_CONTEXT_UNAVAILABLE           (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1306))
83
84 //----------------------------------------------------------------------------D
85 /** Thrown when the requested data does not exist. */
86 #define E_DATA_NOT_FOUND                (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1400))
87
88 /** Thrown when underlying database system raises exception. */
89 #define E_DATABASE                      (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1401))
90
91 /** Thrown when decoding operation fails. */
92 #define E_DECODING_FAILED               (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1402))
93
94 /** Thrown when the device is processing the previous task, so cannot process
95  * the new one. */
96 #define E_DEVICE_BUSY                   (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1403))
97
98 /** Thrown when the device fails with unknown reason. */
99 #define E_DEVICE_FAILED                 (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1404))
100
101 /** Thrown when the device does not support the specific request. */
102 #define E_DEVICE_INCOMPATIBLE           (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1405))
103
104 /** Thrown when the device is not installed, or not answering at all. */
105 #define E_DEVICE_UNAVAILABLE            (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1406))
106
107 /** General DHCP exception. */
108 #define E_DHCP                          (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1407))
109
110 /** Thrown when the dimension has changed. */
111 #define E_DIMENSION_CHANGED             (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1408))
112
113 /** General DNS exception. */
114 #define E_DNS                           (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1409))
115
116 /** Thrown when DNS cannot resolve the requested address. */
117 #define E_DNS_NOT_FOUND                 (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1410))
118
119 /** Thrown when the data is not enough to generate the processing result. */
120 #define E_DATA_NOT_ENOUGH               (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1411))
121
122 //----------------------------------------------------------------------------E
123 /** Thrown when effects being played on the current haptic device are disabled. */
124 #define E_EFFECTS_DISABLED              (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1500))
125
126 /** Thrown when a body is empty. */
127 #define E_EMPTY_BODY                    (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1501))
128
129 /** Thrown when encoding operation fails. */
130 #define E_ENCODING_FAILED               (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1502))
131
132 /** Thrown when an end of the file or an end of the stream is reached unexpectedly
133  * during an input operation. */
134 #define E_END_OF_FILE                   (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1503))
135
136
137 //----------------------------------------------------------------------------F
138 // Thrown when the requested operation fails by undefined reason.
139 //#define E_FAILURE                                             (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1600))
140
141 /** (specialized) Thrown when application tries to call with a number which is
142  * not allowed in FDN mode, while the FDN mode is enabled. */
143 #define E_FDN_MODE                      (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1600))
144
145 /** Thrown when an attempt to create the file denoted by a specified pathname
146  *  fails. */
147 #define E_FILE_ALREADY_EXIST            (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1601))
148
149 /** Thrown when an attempt to open the file denoted by a specified pathname
150  *  fails. */
151 #define E_FILE_NOT_FOUND                (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1602))
152
153
154 //----------------------------------------------------------------------------G
155 /** Thrown when a required group does not exist. */
156 #define E_GROUP_NOT_FOUND               (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1700))
157
158
159 //----------------------------------------------------------------------------H
160 /** Thrown the destination host is not found. */
161 #define E_HOST_NOT_FOUND                (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1800))
162
163 /** Thrown when the destination host is unreachable. */
164 #define E_HOST_UNREACHABLE              (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1801))
165
166 /** Thrown the Http transaction is canceled by user. */
167 #define E_HTTP_USER                     (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1802))
168
169
170 //----------------------------------------------------------------------------I
171 /** Thrown when the user does not have proper permissions. */
172 #define E_ILLEGAL_ACCESS                (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1900))
173
174 /** Thrown when the application requests an operation which is in progress. */
175 #define E_IN_PROGRESS                   (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1901))
176
177 /** Thrown when the return type is supposed to be a file path, but the path is not accessible by the application. */
178 #define E_INACCESSIBLE_PATH             (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1902))
179
180 /** Thrown when initialization fails. */
181 #define E_INIT_FAILED                   (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1903))
182
183 /** Thrown when an instantiation fails by certain reason. */
184 #define E_INSTANTIATION_FAILED          (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1904))
185
186 /** Thrown when the haptic device priority is lower than that of the current
187  *  effects being played, belonging to another device instance. */
188 #define E_INSUFFICIENT_PRIORITY         (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1905))
189
190 /** Thrown when a requested operation cannot perform any further due to an
191  * interruption from other thread. */
192 #define E_INTERRUPTED                   (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1906))
193
194 /** Thrown when an account configuration is invalid. */
195 #define E_INVALID_ACCOUNT               (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1907))
196
197 /** Thrown when a given address is invalid or not suitable for a requested
198  * operation. */
199 #define E_INVALID_ADDRESS               (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1908))
200
201 /** Thrown when a combination of passed information is not proper for performing
202  * the requested operation. */
203 #define E_INVALID_ARG                   (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1909))
204
205 /** Thrown when a combination of passed information is not proper for performing
206  * the requested operation. */
207 #define E_INVALID_CONDITION             (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1910))
208
209 /** Thrown when an operation requests for invalid connection. */
210 #define E_INVALID_CONNECTION            (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1911))
211
212 /** Thrown when content is invalid. */
213 #define E_INVALID_CONTENT               (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1912))
214
215 /** Thrown when context is invalid. */
216 #define E_INVALID_CONTEXT               (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1913))
217
218 /** Thrown when the requested (given or referenced) data is invalid. */
219 #define E_INVALID_DATA                  (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1914))
220
221 /** (specialized) Thrown when the requested (given or referenced) domain is
222  * invalid. */
223 #define E_INVALID_DOMAIN                (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1915))
224
225 /** Thrown when an indicated string contains code pointing outside of bounds by the
226  * specified character encoding scheme. */
227 #define E_INVALID_ENCODING_RANGE        (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1916))
228
229 /** Thrown when the specified input has invalid format. */
230 #define E_INVALID_FORMAT                (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1917))
231
232 /** (specialized) Thrown when  */
233 #define E_INVALID_HEADER                (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1918))
234
235 /** Thrown when the specified input has invalid format. */
236 #define E_INVALID_KEY                   (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1919))
237
238 /** Thrown when current state of the instance prohibits the execution of the
239  * specified operation. */
240 #define E_INVALID_OPERATION             (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1920))
241
242 /** (specialized) Thrown when the proxy address is invalid. */
243 #define E_INVALID_PROXY                 (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1921))
244
245 /** (specialized) Thrown when the SIM is not in proper state for processing the
246  * requested operation. */
247 #define E_INVALID_SIM_STATE             (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1922))
248
249 /** (specialized) Thrown when the DNS request goes to an invalid DNS server. */
250 #define E_INVALID_SERVER                (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1923))
251
252 /** Thrown when the relevant session is invalid. */
253 #define E_INVALID_SESSION               (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1924))
254
255 /** Thrown when the socket which is responsible for the application's request
256  * is invalid. */
257 #define E_INVALID_SOCKET                (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1925))
258
259 /** Thrown when an instance is not in valid state. */
260 #define E_INVALID_STATE                 (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1926))
261
262 /** Thrown when the relevant transaction is invalid. */
263 #define E_INVALID_TRANSACTION           (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1927))
264
265 /** Thrown when an exception occurs during I/O operations. This is a general
266  * exception produced by failed or interrupted I/O operations. */
267 #define E_IO                            (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1928))
268
269 /** Thrown when the client has not joined the domain controller. */
270 #define E_NOT_JOINED                    (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1929))
271
272 /** The server certificate verification has failed on client. */
273 #define E_INVALID_CERTIFICATE           (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1930))
274
275 /** Thrown when a given url is invalid or not suitable for a requested
276 * operation. */
277 #define E_INVALID_URL                   (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1931))
278
279 /** Thrown when the specified user id has invalid format. */
280 #define E_INVALID_USER_ID               (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1932))
281
282 /** Thrown when the specified password has invalid format. */
283 #define E_INVALID_PASSWORD              (ERR_SRC_FRAMEWORK + SET_E_CAUSE(1933))
284
285
286 //----------------------------------------------------------------------------J
287
288 //----------------------------------------------------------------------------K
289 /** Thrown when a specified key already exists. */
290 #define E_KEY_ALREADY_EXIST             (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2100))
291
292 /** Thrown when a required key does not exist. */
293 #define E_KEY_NOT_FOUND                 (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2101))
294
295 //----------------------------------------------------------------------------L
296 /** Thrown when an error related to handling landmark occurs. */
297 #define E_LANDMARK                      (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2200))
298
299 /** Thrown when a specified library does not exists. */
300 #define E_LIBRARY_NOT_FOUND             (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2201))
301
302 /** Thrown when a specified library is not loaded. */
303 #define E_LIBRARY_NOT_LOADED            (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2202))
304
305 /** (specialized) Thrown when a link error occurs. */
306 #define E_LINK                          (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2203))
307
308 /** Thrown when a Location API specific error has occurred. */
309 #define E_LOCATION                      (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2204))
310
311 /** Thrown when an error related to handling service provider requests has
312  * occurred. */
313 #define E_LOCATION_SERVICE              (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2205))
314
315 /** Thrown when locking (or unlocking) fails inside the logic. So cannot
316  * guarantee synchronous operation. */
317 #define E_LOCK_FAILED                   (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2206))
318
319 /** Thrown when the language is not set yet. */
320 #define E_LANGUAGE_NOT_SET              (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2207))
321
322 /** Thrown when a location is not available */
323 #define E_LOCATION_UNAVAILABLE          (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2208))
324
325 //----------------------------------------------------------------------------M
326 /** Thrown when the defined limit exceeds. */
327 #define E_MAX_EXCEEDED                  (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2300))
328
329 /** Thrown when one or more of the required input is not provided. */
330 #define E_MISSING_INPUT                 (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2301))
331
332 /** (specialized) ... */
333 #define E_MOBILE_FAILED                 (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2302))
334
335 /** (specialized) ... */
336 #define E_MODEL_NOT_FOUND               (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2303))
337
338 /** Thrown when a specified member already exists. */
339 #define E_MEMBER_ALREADY_EXIST          (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2304))
340
341
342 //----------------------------------------------------------------------------N
343 /** General network exception. */
344 #define E_NETWORK_FAILED                (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2400))
345
346 /** Thrown when the network is not enabled. */
347 #define E_NETWORK_UNAVAILABLE           (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2401))
348
349 /** Thrown the client certificate is required to connect to the server. */
350 #define E_NO_CERTIFICATE                (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2402))
351
352 /** Thrown when the operation is permitted only for members, but the current
353  * user is not. */
354 #define E_NOT_A_MEMBER                  (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2403))
355
356 /** (specialized) Thrown when Bluetooth pairing is not established. */
357 #define E_NOT_PAIRED                    (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2404))
358
359 /** Thrown when the target is not responding. */
360 #define E_NOT_RESPONDING                (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2405))
361
362 /** Thrown when the specified string does not represent valid number. */
363 #define E_NUM_FORMAT                    (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2406))
364
365 //----------------------------------------------------------------------------O
366 /** Thrown when the specified instance already exists. */
367 #define E_OBJ_ALREADY_EXIST             (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2500))
368
369 /** Thrown when the required instance does not exist. */
370 #define E_OBJ_NOT_FOUND                 (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2501))
371
372 /** Thrown when the specified instance is already locked. */
373 #define E_OBJECT_LOCKED                 (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2502))
374
375 /** Thrown when any request occurs while the target is still
376  * initializing. */
377 #define E_ON_INITIALIZING               (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2503))
378
379 /** Thrown when the operation is canceled explicitly. */
380 #define E_OPERATION_CANCELED            (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2504))
381
382 /** Thrown when the operation fails due to certain reason. */
383 #define E_OPERATION_FAILED              (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2505))
384
385 /** Thrown when the memory is not sufficient to perform the requested
386  * operation. */
387 #define E_OUT_OF_MEMORY                 (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2506))
388
389 /** Thrown when the internal state of the current instance reaches the
390  * valid range. */
391 #define E_OUT_OF_RANGE                  (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2507))
392
393 /** Thrown when the operation has caused an overflow. */
394 #define E_OVERFLOW                      (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2508))
395
396 /** Thrown when OpenGL operation failed. */
397 #define E_OPENGL_ERROR                  (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2509))
398
399
400 //----------------------------------------------------------------------------P
401 /** (specialized) Thrown when the requested Bluetooth pairing fails. */
402 #define E_PAIRING_FAILED                (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2600))
403
404 /** Thrown when the parsing fails due to any reason. */
405 #define E_PARSING_FAILED                (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2601))
406
407 /** Thrown when an application invokes an API without a proper privilege. */
408 #define E_PRIVILEGE_DENIED              (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2602))
409
410 /** Thrown when the package is not installed. */
411 #define E_PKG_NOT_INSTALLED             (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2603))
412
413 //----------------------------------------------------------------------------Q
414
415 //----------------------------------------------------------------------------R
416 /** Thrown when a write operation is requested for an instance in read only
417  * mode. */
418 #define E_READ_ONLY                     (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2800))
419
420 /** Thrown when the operation is rejected by remote site. */
421 #define E_REJECTED                      (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2801))
422
423 /** (not used) */
424 #define E_REMOTE_DEVICE_NOT_FOUND       (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2802))
425
426 /** (not used) */
427 #define E_REMOVE_SERVICE_NOT_FOUND      (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2803))
428
429 /** Thrown when the required resource is currently unavailable. */
430 #define E_RESOURCE_UNAVAILABLE          (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2804))
431
432 /** Thrown when the right to get served has expired. */
433 #define E_RIGHT_EXPIRED                 (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2805))
434
435 /** Thrown when there is no right. */ 
436 #define E_RIGHT_NO_LICENSE              (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2806))
437
438 /** Thrown when the right is for future use. */
439 #define E_RIGHT_FUTURE_USE                      (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2807))
440
441 //----------------------------------------------------------------------------S
442 /** Thrown when the specified section already exists. */
443 #define E_SECTION_ALREADY_EXIST         (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2900))
444
445 /** Thrown when the required section does not exist. */
446 #define E_SECTION_NOT_FOUND             (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2901))
447
448 /** Thrown when a server tells the device that operation failed due to some
449  * reason. Detailed message will be followed by - error code and an error message. */
450 #define E_SERVER                        (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2902))
451
452 /** Thrown when the dedicated service module is too busy to handle another
453  * request. */
454 #define E_SERVICE_BUSY                  (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2903))
455
456 /** Thrown when the specific service is restricted by policy. */
457 #define E_SERVICE_LIMITED               (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2904))
458
459 /** Thrown when a service is locked. */
460 #define E_SERVICE_LOCKED                (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2905))
461
462 /** Thrown when the dedicated service is not available. */
463 #define E_SERVICE_UNAVAILABLE           (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2906))
464
465 /** Thrown when the base session is deactivated while it's still being used. */
466 #define E_SESSION_DEACTIVATED           (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2907))
467
468 /** (not used) */
469 #define E_SESSION_UNAVAILABLE           (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2908))
470
471 /** (not used)  */
472 #define E_SIZE_MISMATCH                 (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2909))
473
474 /** The socket connection closed by user. */
475 #define E_SOCKET_USER                   (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2910))
476
477 /** Thrown when the storage is full. */
478 #define E_STORAGE_FULL                  (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2911))
479
480 /** Thrown when the specified symbol is not found. */
481 #define E_SYMBOL_NOT_FOUND              (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2912))
482
483 /** Thrown when the input statement does not confirm to the specific syntax. */
484 #define E_SYNTAX                        (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2913))
485
486 /** Thrown when a failure occurs from the underlying system. */
487 #define E_SYSTEM                        (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2914))
488
489 /** Thrown when a service is deactivated. */
490 #define E_SERVICE_DEACTIVATED           (ERR_SRC_FRAMEWORK + SET_E_CAUSE(2915))
491
492
493 //----------------------------------------------------------------------------T
494 /** (specialized) Thrown then the specified table does not exist. */
495 #define E_TABLE_NOT_FOUND               (ERR_SRC_FRAMEWORK + SET_E_CAUSE(3000))
496
497 /** Thrown when the operation can not be completed within the specified time
498  * period. */
499 #define E_TIMEOUT                       (ERR_SRC_FRAMEWORK + SET_E_CAUSE(3001))
500
501 /** Thrown when the specified type does not match. */
502 #define E_TYPE_MISMATCH                 (ERR_SRC_FRAMEWORK + SET_E_CAUSE(3002))
503
504
505 //----------------------------------------------------------------------------U
506 /** Thrown when the operation causes an underflow. */
507 #define E_UNDERFLOW                     (ERR_SRC_FRAMEWORK + SET_E_CAUSE(3100))
508
509 /** Thrown when a unknown error occurs. */
510 #define E_UNKNOWN                       (ERR_SRC_FRAMEWORK + SET_E_CAUSE(3101))
511
512 /** Thrown when the specified algorithm is not supported. */
513 #define E_UNSUPPORTED_ALGORITHM         (ERR_SRC_FRAMEWORK + SET_E_CAUSE(3102))
514
515 /** Thrown when the required CODEC is not found. */
516 #define E_UNSUPPORTED_CODEC             (ERR_SRC_FRAMEWORK + SET_E_CAUSE(3103))
517
518 /** (specialized) Thrown when the requested address family is not supported. */
519 #define E_UNSUPPORTED_FAMILY            (ERR_SRC_FRAMEWORK + SET_E_CAUSE(3104))
520
521 /** Thrown when the current implementation does not support the format of the
522  * input. */
523 #define E_UNSUPPORTED_FORMAT            (ERR_SRC_FRAMEWORK + SET_E_CAUSE(3105))
524
525 /** Thrown when the specified protocol is not supported. */
526 #define E_UNSUPPORTED_PROTOCOL          (ERR_SRC_FRAMEWORK + SET_E_CAUSE(3106))
527
528 /** Thrown when the current implementation does not support the requested
529  * operation. */
530 #define E_UNSUPPORTED_OPERATION         (ERR_SRC_FRAMEWORK + SET_E_CAUSE(3107))
531
532 /** Thrown when the specified option is not supported. */
533 #define E_UNSUPPORTED_OPTION            (ERR_SRC_FRAMEWORK + SET_E_CAUSE(3108))
534
535 /** Thrown when the specified service is not supported. */
536 #define E_UNSUPPORTED_SERVICE           (ERR_SRC_FRAMEWORK + SET_E_CAUSE(3109))
537
538 /** Thrown when the specified type is not supported. */
539 #define E_UNSUPPORTED_TYPE              (ERR_SRC_FRAMEWORK + SET_E_CAUSE(3110))
540
541 /** Thrown when the URL is changed. */
542 #define E_URL_CHANGED                   (ERR_SRC_FRAMEWORK + SET_E_CAUSE(3111))
543
544 /** (specialized) used by HTTP transaction. */
545 #define E_USER_AGENT_NOT_ALLOWED        (ERR_SRC_FRAMEWORK + SET_E_CAUSE(3112))
546
547 /** Thrown when a user is already registered to the device. */
548 #define E_USER_ALREADY_REGISTERED       (ERR_SRC_FRAMEWORK + SET_E_CAUSE(3113))
549
550 /** Thrown when the required user does not exist. */
551 #define E_USER_NOT_FOUND                (ERR_SRC_FRAMEWORK + SET_E_CAUSE(3114))
552
553 /** Thrown when no user is registered to the device yet. */
554 #define E_USER_NOT_REGISTERED           (ERR_SRC_FRAMEWORK + SET_E_CAUSE(3115))
555
556 /** Thrown when the specified language is not supported. */
557 #define E_UNSUPPORTED_LANGUAGE          (ERR_SRC_FRAMEWORK + SET_E_CAUSE(3116))
558
559 /** Thrown when the specified version of the input content is not supported. */
560 #define E_UNSUPPORTED_VERSION           (ERR_SRC_FRAMEWORK + SET_E_CAUSE(3117))
561
562 /** Thrown when the specified locale is not supported. */
563 #define E_UNSUPPORTED_LOCALE            (ERR_SRC_FRAMEWORK + SET_E_CAUSE(3118))
564
565 /** Thrown when the user blocks an application from using the user information. */
566 #define E_USER_NOT_CONSENTED            (ERR_SRC_FRAMEWORK + SET_E_CAUSE(3119))
567
568 //----------------------------------------------------------------------------V
569
570 //----------------------------------------------------------------------------W
571 /** (specialized) Thrown when non-blocking socket operation could not be
572  * completed immediately. */
573 #define E_WOULD_BLOCK                   (ERR_SRC_FRAMEWORK + SET_E_CAUSE(3300))
574
575 /** Thrown when the specified object would cause a deadlock. */
576 #define E_WOULD_DEADLOCK                (ERR_SRC_FRAMEWORK + SET_E_CAUSE(3301))
577
578
579 //----------------------------------------------------------------------------X
580
581 //----------------------------------------------------------------------------Y
582
583 //----------------------------------------------------------------------------Z
584
585
586 //-----------------------------------------------------------------------------
587
588 #endif // _FBASE_ERRORS_H_