b311480e |
1 | // Copyright (c) 1998-1999 Matra Datavision |
2 | // Copyright (c) 1999-2012 OPEN CASCADE SAS |
3 | // |
4 | // The content of this file is subject to the Open CASCADE Technology Public |
5 | // License Version 6.5 (the "License"). You may not use the content of this file |
6 | // except in compliance with the License. Please obtain a copy of the License |
7 | // at http://www.opencascade.org and read it completely before using this file. |
8 | // |
9 | // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
10 | // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
11 | // |
12 | // The Original Code and all software distributed under the License is |
13 | // distributed on an "AS IS" basis, without warranty of any kind, and the |
14 | // Initial Developer hereby disclaims all such warranties, including without |
15 | // limitation, any warranties of merchantability, fitness for a particular |
16 | // purpose or non-infringement. Please see the License for the specific terms |
17 | // and conditions governing the rights and limitations under the License. |
18 | |
7fd59977 |
19 | #ifndef List_Of_Errors |
20 | #define List_Of_Errors |
21 | #include <OSD_WhoAmI.hxx> |
22 | #include <errno.h> |
23 | |
24 | // List of OSD error codes |
25 | |
26 | #define ERR_SURPRISE -2 |
27 | // Error message management didn't follow code evolution |
28 | |
29 | #define ERR_UNKNOWN -1 |
30 | // Unknown system error |
31 | |
32 | #define ERR_NONE 0 |
33 | // No error |
34 | |
35 | // Errors common to alot of classes |
36 | |
37 | #define ERR_ACCESS 1 |
38 | #define ERR_EXIST 2 |
39 | #define ERR_FAULT 3 |
40 | #define ERR_INTR 4 |
41 | #define ERR_INVAL 5 |
42 | #define ERR_IO 6 |
43 | #define ERR_ISDIR 7 |
44 | #define ERR_NAMETOOLONG 8 |
45 | #define ERR_NOENT 9 |
46 | #define ERR_NOMEM 10 |
47 | #define ERR_NOTDIR 11 |
48 | #define ERR_PERM 12 |
49 | #define ERR_QUOT 13 |
50 | #define ERR_RANGE 14 |
51 | #define ERR_ROFS 15 |
52 | #define ERR_TOOBIG 16 |
53 | |
54 | //------------------- Error list by class Family ------------------------ |
55 | |
56 | // Class Directory |
57 | |
58 | #define ERR_DMLINK 17 |
59 | #define ERR_DNOENT 18 |
60 | |
61 | // Class File |
62 | |
63 | #define ERR_FAGAIN 19 |
64 | #define ERR_FBADF 20 |
65 | #define ERR_FBADMSG 21 |
66 | #define ERR_FDEADLK 22 |
67 | #define ERR_FEXIST 23 |
68 | #define ERR_FFBIG 24 |
69 | #define ERR_FINVAL 25 |
70 | #define ERR_FIO 26 |
71 | #define ERR_FLOCKED 27 |
72 | #define ERR_FMFILE 28 |
73 | #define ERR_FNOLCK 29 |
74 | #define ERR_FPERM 30 |
75 | #define ERR_FRANGE 31 |
76 | #define ERR_FWFD 32 |
77 | |
78 | // Class FileNode |
79 | |
80 | #define ERR_FNBUSY 33 |
81 | #define ERR_FNFILE 34 |
82 | #define ERR_FNINVAL 35 |
83 | #define ERR_FNOSPC 36 |
84 | #define ERR_FNNOTEMPTY 37 |
85 | #define ERR_FNXDEV 38 |
86 | |
87 | // Class MailBox |
88 | |
89 | #define ERR_MBADF 40 |
90 | #define ERR_MINVAL 41 |
91 | #define ERR_MMFILE 42 |
92 | #define ERR_MPERM 43 |
93 | #define ERR_MSRCH 44 |
94 | |
95 | // Class Semaphore |
96 | |
97 | #define ERR_SIDRM 45 |
98 | #define ERR_SFBIG 46 |
99 | |
100 | // Class SharedMemory |
101 | |
102 | #define ERR_SMMFILE 47 |
103 | #define ERR_SMNOSPC 48 |
104 | #define ERR_SNOENT 49 |
105 | |
106 | // Package |
107 | #define ERR_PPERM 50 |
108 | |
109 | |
110 | #endif |