Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/heathaze/src/defs/error.h @ 10656

Last change on this file since 10656 was 8717, checked in by bensch, 19 years ago

merged the gui back

File size: 1.4 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  *  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  *  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
56struct ErrorMessage
57{
58  ErrorMessage(int code = 0, char* message = NULL, char* location = NULL)
59    : code(code), message(message), location(location) {};
60  int code;
61  char* message;
62  char* location;
63};
64
65#endif /* _ERROR_H */
Note: See TracBrowser for help on using the repository browser.