0023427: Unused C-sources in OSD package
[occt.git] / src / OSD / OSD_ErrorList.hxx
1 // Copyright (c) 1998-1999 Matra Datavision
2 // Copyright (c) 1999-2014 OPEN CASCADE SAS
3 //
4 // This file is part of Open CASCADE Technology software library.
5 //
6 // This library is free software; you can redistribute it and / or modify it
7 // under the terms of the GNU Lesser General Public version 2.1 as published
8 // by the Free Software Foundation, with special exception defined in the file
9 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 // distribution for complete text of the license and disclaimer of any warranty.
11 //
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
14
15 #ifndef List_Of_Errors
16 #define List_Of_Errors
17 #include <OSD_WhoAmI.hxx>
18 #include <errno.h>
19
20 // List of OSD error codes
21
22 #define ERR_SURPRISE -2 
23 // Error message management didn't follow code evolution
24
25 #define ERR_UNKNOWN -1  
26 // Unknown system error
27
28 #define ERR_NONE     0  
29 // No error
30
31 // Errors common to alot of classes
32
33 #define ERR_ACCESS       1
34 #define ERR_EXIST        2
35 #define ERR_FAULT        3
36 #define ERR_INTR         4
37 #define ERR_INVAL        5
38 #define ERR_IO           6
39 #define ERR_ISDIR        7
40 #define ERR_NAMETOOLONG  8
41 #define ERR_NOENT        9
42 #define ERR_NOMEM       10
43 #define ERR_NOTDIR      11
44 #define ERR_PERM        12
45 #define ERR_QUOT        13
46 #define ERR_RANGE       14
47 #define ERR_ROFS        15
48 #define ERR_TOOBIG      16
49
50 //------------------- Error list by class Family ------------------------
51
52 // Class Directory
53
54 #define ERR_DMLINK      17
55 #define ERR_DNOENT      18
56
57 // Class File
58
59 #define ERR_FAGAIN      19
60 #define ERR_FBADF       20
61 #define ERR_FBADMSG     21
62 #define ERR_FDEADLK     22
63 #define ERR_FEXIST      23
64 #define ERR_FFBIG       24
65 #define ERR_FINVAL      25
66 #define ERR_FIO         26
67 #define ERR_FLOCKED     27
68 #define ERR_FMFILE      28
69 #define ERR_FNOLCK      29
70 #define ERR_FPERM       30
71 #define ERR_FRANGE      31
72 #define ERR_FWFD        32
73
74 // Class FileNode
75
76 #define ERR_FNBUSY      33
77 #define ERR_FNFILE      34
78 #define ERR_FNINVAL     35
79 #define ERR_FNOSPC      36
80 #define ERR_FNNOTEMPTY  37
81 #define ERR_FNXDEV      38
82
83 // Package
84 #define ERR_PPERM       50
85
86
87 #endif