source:
orxonox.OLD/orxonox/trunk/src/defs/error.h
@
4048
Last change on this file since 4048 was 3475, checked in by patrick, 20 years ago | |
---|---|
File size: 1.3 KB |
Line | |
---|---|
1 | |
2 | |
3 | /* |
4 | orxonox - the future of 3D-vertical-scrollers |
5 | |
6 | Copyright (C) 2004 orx |
7 | |
8 | This program is free software; you can redistribute it and/or modify |
9 | it under the terms of the GNU General Public License as published by |
10 | the Free Software Foundation; either version 2, or (at your option) |
11 | any later version. |
12 | |
13 | ### File Specific: |
14 | main-programmer: Patrick Boenzli |
15 | co-programmer: Christian Meyer |
16 | */ |
17 | |
18 | |
19 | /*! |
20 | \file error.h |
21 | \brief A compendium of Error codes used in the program |
22 | */ |
23 | |
24 | |
25 | #ifndef _ERROR_H |
26 | #define _ERROR_H |
27 | |
28 | // these are the two undefined error nr. Don't use them ... |
29 | #define oERROR -1 |
30 | |
31 | #define oNOERROR 0 |
32 | |
33 | /*! |
34 | \brief Error Definitions: |
35 | |
36 | Error Classes: |
37 | 0xx application framework codes |
38 | 1xx graphics codes |
39 | 2xx file/FS codes |
40 | 3xx network codes |
41 | 4xx general codes |
42 | |
43 | Error Specifier 1: |
44 | x0x action finsished as desired |
45 | x1x initialisation error |
46 | x2x execution error |
47 | x3x uninitialisation error |
48 | |
49 | Error Specifier 2: |
50 | xx0 no further informations |
51 | xx1 only a warning - feel free to ignore, the program will proceed |
52 | xx2 this could lead unexpected behaviour |
53 | xx3 this is a fatal error - you are invited to quit the program - panic! |
54 | */ |
55 | |
56 | typedef struct |
57 | { |
58 | int code; |
59 | char* message; |
60 | char* location; |
61 | } ErrorMessage; |
62 | |
63 | #endif /* _ERROR_H */ |
Note: See TracBrowser
for help on using the repository browser.