runGlutMainLoop: Some warnings fixed.
[mines3d.git] / exceptions / GeneralException.h
blob1b9ccbc25ca046455b4c09705e12870fec6a86f9
1 /*
2 * File: GeneralException.h
3 * Author: Petr Kubiznak
4 */
6 #ifndef _GENERALEXCEPTION_H
7 #define _GENERALEXCEPTION_H
9 #include <iostream>
10 using namespace std;
12 //standardni chybove kody
13 #define ERR_DEFAULT 0x00
14 #define ERR_OUT_OF_BOUNDS 0x01 //pristup mimo pole
15 #define ERR_ACC_FORBIDDEN 0x02 //nepovoleny pristup k datum
16 #define ERR_AUDIO 0x03
18 class GeneralException {
19 private:
21 public:
22 int errCode;
23 string errText;
25 GeneralException(int code = ERR_DEFAULT, string desc = "");
26 ~GeneralException();
29 #endif /* _GENERALEXCEPTION_H */