CFx SDK Documentation  2022 SP0
daiErrorId.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2019, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Open Design Alliance software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Open Design Alliance Copyright (C) 2002-2019 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 #ifndef _DAI_ERROR_ID_H_
25 #define _DAI_ERROR_ID_H_
26 
27 #include "OdPlatformSettings.h"
28 #include "daiBuildOptions.h"
29 
30 
31 typedef unsigned int SdaiErrorId;
32 
33 /* SDAI C late binding error codes: *********************************/
34 #define sdaiNO_ERR 0 /* No error */
35 #define sdaiSS_OPN 10 /* Session open */
36 #define sdaiSS_NAVL 20 /* SDAI not available */
37 #define sdaiSS_NOPN 30 /* Session is not open */
38 #define sdaiRP_NEXS 40 /* Repository does not exist */
39 #define sdaiRP_NAVL 50 /* Repository not available */
40 #define sdaiRP_OPN 60 /* Repository open */
41 #define sdaiRP_NOPN 70 /* Repository is not open */
42 #define sdaiTR_EAB 80 /* Transaction ended abnormally */
43 #define sdaiTR_EXS 90 /* Transaction exists */
44 #define sdaiTR_NAVL 100 /* Transaction currently not available */
45 #define sdaiTR_RW 110 /* Transaction read-write */
46 #define sdaiTR_NRW 120 /* Transaction not read-write */
47 #define sdaiTR_NEXS 130 /* Transaction does not exist */
48 #define sdaiMO_NDEQ 140 /* SDAI-model not domain equivalent */
49 #define sdaiMO_NEXS 150 /* SDAI-model does not exist */
50 #define sdaiMO_NVLD 160 /* SDAI-model invalid */
51 #define sdaiMO_DUP 170 /* SDAI-model duplicate */
52 #define sdaiMX_NRW 180 /* SDAI-model access not read-write */
53 #define sdaiMX_NDEF 190 /* SDAI-model access not defined */
54 #define sdaiMX_RW 200 /* SDAI-model access read-write */
55 #define sdaiMX_RO 210 /* SDAI-model access read-only */
56 #define sdaiSD_NDEF 220 /* Schema definition not defined */
57 #define sdaiED_NDEF 230 /* Entity definition not defined */
58 #define sdaiED_NDEQ 240 /* Entity definition not domain equiv.*/
59 #define sdaiED_NVLD 250 /* Entity definition invalid */
60 #define sdaiRU_NDEF 260 /* Rule not defined */
61 #define sdaiEX_NSUP 270 /* Expression evaluation not supported */
62 #define sdaiAT_NVLD 280 /* Attribute invalid */
63 #define sdaiAT_NDEF 290 /* Attribute not defined */
64 #define sdaiSI_DUP 300 /* Schema instance duplicate */
65 #define sdaiSI_NEXS 310 /* Schema instance does not exist */
66 #define sdaiEI_NEXS 320 /* Entity instance does not exist */
67 #define sdaiEI_NAVL 330 /* Entity instance not available */
68 #define sdaiEI_NVLD 340 /* Entity instance invalid */
69 #define sdaiEI_NEXP 350 /* Entity instance not exported */
70 #define sdaiSC_NEXS 360 /* Scope does not exist */
71 #define sdaiSC_EXS 370 /* Scope exists */
72 #define sdaiAI_NEXS 380 /* Aggregate instance does not exist */
73 #define sdaiAI_NVLD 390 /* Aggregate instance invalid */
74 #define sdaiAI_NSET 400 /* Aggregate instance is empty */
75 #define sdaiVA_NVLD 410 /* Value invalid */
76 #define sdaiVA_NEXS 420 /* Value does not exist */
77 #define sdaiVA_NSET 430 /* Value not set */
78 #define sdaiVT_NVLD 440 /* Value type invalid */
79 #define sdaiIR_NEXS 450 /* Iterator does not exist */
80 #define sdaiIR_NSET 460 /* Current member is not defined */
81 #define sdaiIX_NVLD 470 /* Index invalid */
82 #define sdaiER_NSET 480 /* Event recording not set */
83 #define sdaiOP_NVLD 490 /* Operator invalid */
84 #define sdaiFN_NAVL 500 /* Function not available */
85 #define sdaiAB_NEXS 800 /* ADB does not exist */
86 #define sdaiSY_ERR 1000 /* Underlying system error */
87 
88 namespace OdDAI {
89 
90  typedef unsigned int daiErrorId;
92 }
93 #endif
#define DAI_EXPORT
unsigned int SdaiErrorId
Definition: daiErrorId.h:31
unsigned int daiErrorId
Definition: daiErrorId.h:90
DAI_EXPORT const char * errorToDescription(daiErrorId errorId)