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