Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/defs/error.h @ 8898

Last change on this file since 8898 was 8717, checked in by bensch, 18 years ago

merged the gui back

File size: 1.4 KB
RevLine 
[2551]1
2
[8717]3/*
[2551]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
[8717]19/*!
[5039]20 * @file error.h
[4836]21  *  A compendium of Error codes used in the program
[8717]22*/
[2551]23
[3224]24
25#ifndef _ERROR_H
26#define _ERROR_H
27
28// these are the two undefined error nr. Don't use them ...
[3223]29#define oERROR -1
[2636]30
[3223]31#define oNOERROR 0
32
[2636]33/*!
[4836]34  *  Error Definitions:
[2636]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
[8717]56struct ErrorMessage
[2636]57{
[8717]58  ErrorMessage(int code = 0, char* message = NULL, char* location = NULL)
59    : code(code), message(message), location(location) {};
[2636]60  int code;
61  char* message;
62  char* location;
[8717]63};
[3224]64
65#endif /* _ERROR_H */
Note: See TracBrowser for help on using the repository browser.