Last change
on this file since 592 was
11,
checked in by arnault, 20 years ago
|
Changing eol-style property
|
-
Property svn:eol-style set to
native
|
File size:
1.1 KB
|
Line | |
---|
1 | //----------------------------------------------------------- |
---|
2 | // Copyright Christian Arnault LAL-Orsay CNRS |
---|
3 | // arnault@lal.in2p3.fr |
---|
4 | // See the complete license in cmt_license.txt "http://www.cecill.info". |
---|
5 | //----------------------------------------------------------- |
---|
6 | |
---|
7 | #ifndef __cmt_error_h__ |
---|
8 | #define __cmt_error_h__ |
---|
9 | |
---|
10 | #include "cmt_std.h" |
---|
11 | #include "cmt_string.h" |
---|
12 | |
---|
13 | class CmtError |
---|
14 | { |
---|
15 | public: |
---|
16 | |
---|
17 | typedef enum |
---|
18 | { |
---|
19 | ok, |
---|
20 | warning, |
---|
21 | symbol_not_found, |
---|
22 | pattern_not_found, |
---|
23 | syntax_error, |
---|
24 | command_not_implemented, |
---|
25 | package_not_found, |
---|
26 | path_not_found, |
---|
27 | version_conflict, |
---|
28 | file_access_error, |
---|
29 | execution_error, |
---|
30 | cannot_lock, |
---|
31 | cannot_write_lock, |
---|
32 | cannot_run_lock_command, |
---|
33 | cannot_unlock, |
---|
34 | cannot_run_unlock_command, |
---|
35 | cannot_remove_lock, |
---|
36 | conflicting_lock, |
---|
37 | unknown_command, |
---|
38 | project_release_conflict |
---|
39 | } code; |
---|
40 | |
---|
41 | static void clear (); |
---|
42 | static code get_last_error_code (); |
---|
43 | static bool has_pending_error (); |
---|
44 | static const cmt_string& get_error_name (code error); |
---|
45 | static void set (code error, const cmt_string& text); |
---|
46 | static cmt_string get_last_error (); |
---|
47 | static void print (); |
---|
48 | }; |
---|
49 | |
---|
50 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.