OpenClovis Logo

clCorErrors.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002-2012 OpenClovis Solutions Inc. All Rights Reserved.
3  *
4  * This file is available under a commercial license from the
5  * copyright holder or the GNU General Public License Version 2.0.
6  *
7  * The source code for this program is not published or otherwise
8  * divested of its trade secrets, irrespective of what has been
9  * deposited with the U.S. Copyright office.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * General Public License for more details.
15  *
16  * For more information, see the file COPYING provided with this
17  * material.
18  */
19 /*******************************************************************************
20  * ModuleName : cor
21  * File : clCorErrors.h
22  *******************************************************************************/
23 
24 /*******************************************************************************
25  * Description :
26  *
27  * This file contains all the external error Ids for COR.
28  *
29  *
30  *****************************************************************************/
31 
43 #ifndef _CL_COR_ERRORS_H_
44 #define _CL_COR_ERRORS_H_
45 
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
49 
50 /* INCLUDES */
51 #include <clCommon.h>
52 #include <clCommonErrors.h>
53 
54 /* DEFINES */
55 #define CL_COR_SET_RC(ERR_ID) (CL_RC(CL_CID_COR, ERR_ID))
56 
60 #define CL_COR_ERR_NO_MEM CL_ERR_NO_MEMORY
61 
65 #define CL_COR_ERR_INVALID_PARAM CL_ERR_INVALID_PARAMETER
66 
70 #define CL_COR_ERR_NULL_PTR CL_ERR_NULL_POINTER
71 
75 #define CL_COR_ERR_NOT_EXIST CL_ERR_NOT_EXIST
76 
80 #define CL_COR_ERR_INVALID_HANDLE CL_ERR_INVALID_HANDLE
81 
85 #define CL_COR_ERR_INVALID_BUFFER CL_ERR_INVALID_BUFFER
86 
90 #define CL_COR_ERR_BUFFER_OVERRUN CL_ERR_BUFFER_OVERRUN
91 
95 #define CL_COR_ERR_DUPLICATE CL_ERR_DUPLICATE
96 
100 #define CL_COR_ERR_NO_RESOURCE CL_ERR_NO_RESOURCE
101 
105 #define CL_COR_ERR_TIMEOUT CL_ERR_TIMEOUT
106 
111 #define CL_COR_ERR_TRY_AGAIN CL_ERR_TRY_AGAIN
112 
116 #define CL_COR_ERR_INVALID_CLASS 0x100
117 
121 #define CL_COR_ERR_INVALID_STATE 0x101
122 
126 #define CL_COR_ERR_INVALID_MSP_ID 0x102
127 
132 #define CL_COR_ERR_MAX_DEPTH 0x103
133 
137 #define CL_COR_ERR_INVALID_DEPTH 0x104
138 
142 #define CL_COR_ERR_CLASS_PRESENT 0x105
143 
147 #define CL_COR_ERR_CLASS_NOT_PRESENT 0x106
148 
153 #define CL_COR_ERR_CLASS_INSTANCES_PRESENT 0x107
154 
158 #define CL_COR_ERR_CLASS_ATTR_INVALID_VAL 0x108
159 
163 #define CL_COR_ERR_CLASS_ATTR_PRESENT 0x109
164 
168 #define CL_COR_ERR_OBJECT_LOCKED 0x10a
169 
173 #define CL_COR_ERR_OBJECT_INVALID 0x10b
174 
178 #define CL_COR_ERR_CLASS_ATTR_NOT_PRESENT 0x10c
179 
183 #define CL_COR_ERR_CLASS_ATTR_TILL_REACHED 0x10d
184 
188 #define CL_COR_ERR_CLASS_ATTR_OUT_OF_RANGE 0x10e
189 
195 #define CL_COR_ERR_CLASS_ATTR_INVALID_INDEX 0x10f
196 
200 #define CL_COR_ERR_CLASS_ATTR_INVALID_RELATION 0x110
201 
205 #define CL_COR_ERR_OBJ_ATTR_INVALID_SET 0x111
206 
210 #define CL_COR_ERR_CLASS_INVALID_PATH 0x112
211 
215 #define CL_COR_ERR_OBJECT_ACTIVE 0x113
216 
220 #define CL_COR_ERR_ROUTE_PRESENT 0x114
221 
225 #define CL_COR_ERR_UNKNOWN_COR_INSTANCE 0x115
226 
230 #define CL_COR_ERR_INSUFFICIENT_BUFFER 0x116
231 
236 #define CL_COR_ERR_CLASS_MISMATCH 0x117
237 
241 #define CL_COR_ERR_CLASS_ATTR_INVALID_TYPE 0x118
242 
246 #define CL_COR_ERR_ROUTE_NOT_PRESENT 0x119
247 
251 #define CL_COR_ERR_NOT_SUPPORTED 0x11a
252 
256 #define CL_COR_ERR_INVALID_OH_MASK 0x11b
257 
261 #define CL_COR_ERR_ALREADY_INIT 0x11c
262 
267 #define CL_COR_ERR_CLASS_ATTR_NOT_INITIALIZED 0x11d
268 
272 #define CL_COR_ERR_OBJ_ATTR_NOT_PRESENT 0x11e
273 
277 #define CL_COR_ERR_CLASS_IS_BASE 0x11f
278 
282 #define CL_COR_ERR_OBJ_NOT_PRESENT 0x120
283 
288 #define CL_COR_ERR_INVALID_SIZE 0x121
289 
293 #define CL_COR_ERR_VERSION_UNSUPPORTED 0x122
294 
295 
296 
297 /* MO_TREE-specific error IDs, follows base COR base error IDs and starts at 0x130 */
298 
302 #define CL_COR_MO_TREE_ERR_FAILED_TO_ADD_NODE 0x130
303 
307 #define CL_COR_MO_TREE_ERR_FAILED_TO_DEL_NODE 0x131
308 
313 #define CL_COR_MO_TREE_ERR_FAILED_USR_BUF 0x132
314 
319 #define CL_COR_MO_TREE_ERR_CLASS_NO_PRESENT 0x133
320 
324 #define CL_COR_MO_TREE_ERR_NODE_NOT_FOUND 0x134
325 
329 #define CL_COR_MO_TREE_ERR_NODE_FOUND 0x135
330 
334 #define CL_COR_MO_TREE_ERR_MAX_INST 0x136
335 
339 #define CL_COR_MO_TREE_ERR_CHILD_CLASS_EXIST 0x137
340 
341 
342 /* INSTANCE-specific error IDs, follows MO_TREE error IDs ans start at 0x140 */
343 
347 #define CL_COR_INST_ERR_NODE_NOT_FOUND 0x140
348 
353 #define CL_COR_INST_ERR_MSO_ALREADY_PRESENT 0x141
354 
358 #define CL_COR_INST_ERR_MO_ALREADY_PRESENT 0x142
359 
363 #define CL_COR_INST_ERR_MSO_NOT_PRESENT 0x143
364 
369 #define CL_COR_INST_ERR_INVALID_MOID 0x144
370 
374 #define CL_COR_INST_ERR_UNPACK_FAILED 0x145
375 
379 #define CL_COR_INST_ERR_NODE_ALREADY_PRESENT 0x146
380 
384 #define CL_COR_INST_ERR_NODE_NOT_TO_PACK 0x147
385 
389 #define CL_COR_INST_ERR_CHILD_MO_EXIST 0x148
390 
394 #define CL_COR_INST_ERR_MSO_EXIST 0x149
395 
400 #define CL_COR_INST_ERR_MAX_INSTANCE 0x14a
401 
405 #define CL_COR_INST_ERR_PARENT_MO_NOT_EXIST 0x14b
406 
407 
408 
409 /* TXN-specific error IDs, follows INST error IDs and starts at 0x150 */
410 
414 #define CL_COR_TXN_ERR_OUT_OF_TXN 0x150
415 
419 #define CL_COR_TXN_ERR_INVALID_ID 0x151
420 
425 #define CL_COR_TXN_ERR_INVALID_STATE 0x152
426 
430 #define CL_COR_TXN_ERR_SPANS_MULTI_OBJ 0x153
431 
436 #define CL_COR_TXN_ERR_INVALID_OP 0x154
437 
442 #define CL_COR_TXN_ERR_FIRST_JOB 0x155
443 
447 #define CL_COR_TXN_ERR_LAST_JOB 0x156
448 
452 #define CL_COR_TXN_ERR_ZERO_JOBS 0x157
453 
457 #define CL_COR_TXN_ERR_INVALID_JOB_ID 0x158
458 
463 #define CL_COR_TXN_ERR_FAILED_JOB_GET 0x159
464 
469 #define CL_COR_TXN_ERR_FAILED_JOB_NOT_EXIST 0x15a
470 
474 #define CL_COR_ERR_RUNTIME_CACHED_SET 0x15b
475 
479 #define CL_COR_ERR_ATTR_NON_WRITABLE_SET 0x15c
480 
485 #define CL_COR_TXN_ERR_JOB_WALK_TERMINATE 0x15d
486 
487 
488 /* Notify-specific error IDs, follows TXN error IDs and starts at 0x160 */
489 
494 #define CL_COR_NOTIFY_ERR_INVALID_OP 0x160
495 
499 #define CL_COR_NOTIFY_ERR_CANNOT_RESOLVE_CLASS 0x161
500 
501 
502 /* Managed Services error IDs, follows Notify error IDs and starts at 0x170 */
503 
507 #define CL_COR_SVC_ERR_INVALID_FLAGS 0x170
508 
513 #define CL_COR_SVC_ERR_INVALID_ID 0x171
514 
518 #define CL_COR_INTERNAL_ERR_INVALID_COR_LIST 0x172
519 
523 #define CL_COR_INTERNAL_ERR_INVALID_RM_FLAGS 0x173
524 
525 
526 /* COR Utils error IDs, follows SVC error IDs and starts at 0x180 */
527 
532 #define CL_COR_UTILS_ERR_INVALID_KEY 0x180
533 
537 #define CL_COR_UTILS_ERR_MEMBER_NOT_FOUND 0x181
538 
542 #define CL_COR_UTILS_ERR_INVALID_NODE_REF 0x182
543 
548 #define CL_COR_UTILS_ERR_INVALID_TAG 0x183
549 
553 #define CL_COR_UTILS_ERR_FOUND_END_TAG 0x184
554 
558 #define CL_COR_UTILS_ERR_MOCLASSPATH_MISMATCH 0x185
559 
560 
561 
562 /* COR Initialization related error IDs. It starts from 0x190 onwards*/
563 
567 #define CL_COR_ERR_CONFIG_ATTR_FLAG 0x190
568 
572 #define CL_COR_ERR_RUNTIME_ATTR_WRITE 0x191
573 
577 #define CL_COR_ERR_ATTR_PERS_WITHOUT_CACHE 0x192
578 
582 #define CL_COR_ERR_ATTR_FLAGS_INVALID 0x193
583 
587 #define CL_COR_ERR_OP_ATTR_TYPE_INVALID 0x194
588 
589 
590 /* COR Session related error IDs, start from 0x1a0 onwards*/
591 
595 #define CL_COR_ERR_GET_DATA_NOT_FOUND 0x1a0
596 
600 #define CL_COR_ERR_BUNDLE_INIT_FAILURE 0x1a1
601 
605 #define CL_COR_ERR_BUNDLE_APPLY_FAILURE 0x1a2
606 
610 #define CL_COR_ERR_ZERO_JOBS_BUNDLE 0x1a3
611 
615 #define CL_COR_ERR_ATTR_READ_ONLY 0x1a4
616 
620 #define CL_COR_ERR_BUNDLE_FINALIZE 0x1a5
621 
625 #define CL_COR_ERR_BUNDLE_TIMED_OUT 0x1a6
626 
631 #define CL_COR_ERR_BUNDLE_IN_EXECUTION 0x1a7
632 
637 #define CL_COR_ERR_BUNDLE_INVALID_TYPE 0x1a8
638 
639 
640 
641 /* COR OI registration related error IDS. It starts from 0x1c0 onwards. */
642 
643 /* OI list related errors :
644 1. OI is not registered.
645 2. A read OI is already registered for this MO.
646 */
647 
653 #define CL_COR_ERR_OI_NOT_REGISTERED 0x1c0
654 
658 #define CL_COR_ERR_OI_ALREADY_REGISTERED 0x1c1
659 
660 /* COR COMM error IDs, follows Session error IDs and starts at 0x1d0 */
661 
662 
666 #define CL_COR_COMM_ERR_INVALID_OP 0x1d0
667 
668 
669 
670 /* COR CLI error IDs, follows comm error Ids and starts from 0x1e0 */
671 
675 #define CL_COR_CLI_ERR_INVALID_USAGE 0x1e0
676 
677 
678 
679 /* Error string declarations */
680 
684 #define CL_COR_ERR_STR_MEM_ALLOC_FAIL "Memory allocation failed!"
685 
689 #define CL_COR_ERR_STR_MAX_DEPTH "Max depth already used!"
690 
695 #define CL_COR_ERR_STR_INVALID_DEPTH "Invalid depth"
696 
700 #define CL_COR_ERR_INVALID_PARAM_STR "Invalid parameter passed"
701 
705 #define CL_COR_ERR_NULL_PTR_STR "NULL value passed"
706 
710 #define CL_COR_ERR_NO_MEM_STR "Out of memory!"
711 
715 #define CL_COR_ERR_INSUFFICIENT_BUFFER_STR "Insufficient buffer passed!"
716 
720 #define CL_COR_ERR_INVALID_BUFFER_STR "Invalid buffer"
721 
725 #define CL_COR_UTILS_ERR_INVALID_NODE_REF_STR "Invalid Node"
726 
730 #define CL_COR_MO_TREE_ERR_NODE_FOUND_STR "Node already found"
731 
735 #define CL_COR_MO_TREE_ERR_NODE_NOT_FOUND_STR "Unknown node referenced"
736 
740 #define CL_COR_INST_ERR_NODE_NOT_FOUND_STR "Unknown Instance node referred"
741 
745 #define CL_COR_INST_ERR_MO_ALREADY_PRESENT_STR "MO Object already present"
746 
750 #define CL_COR_ERR_STR(ERR) ERR##_STR
751 
752 
753 #ifdef __cplusplus
754 }
755 
756 #endif
757 
758 #endif /* _CL_COR_ERRORS_H_ */
759 
760 

Generated on Tue Jan 10 10:29:15 PST 2012 for OpenClovis SDK using Doxygen