]> git.localhorst.tv Git - gong.git/blob - src/app/error.hpp
code, assets, and other stuff stolen from blank
[gong.git] / src / app / error.hpp
1 #ifndef GONG_APP_ERROR_HPP_
2 #define GONG_APP_ERROR_HPP_
3
4 #include <al.h>
5 #include <stdexcept>
6 #include <string>
7
8
9 namespace gong {
10 namespace app {
11
12 class ALError
13 : public std::runtime_error {
14
15 public:
16         explicit ALError(ALenum);
17         ALError(ALenum, const std::string &);
18
19 };
20
21
22 class AlutError
23 : public std::runtime_error {
24
25 public:
26         explicit AlutError(ALenum);
27         AlutError(ALenum, const std::string &);
28
29 };
30
31
32 class GLError
33 : public std::runtime_error {
34
35 public:
36         GLError();
37         explicit GLError(const std::string &);
38
39 };
40
41
42 class NetError
43 : public std::runtime_error {
44
45 public:
46         NetError();
47         explicit NetError(const std::string &);
48
49 };
50
51
52 class SDLError
53 : public std::runtime_error {
54
55 public:
56         SDLError();
57         explicit SDLError(const std::string &);
58
59 };
60
61
62 class SysError
63 : public std::runtime_error {
64
65 public:
66         SysError();
67         explicit SysError(const std::string &);
68         explicit SysError(int err_num);
69         SysError(int err_num, const std::string &);
70
71 };
72
73
74 class TTFError
75 : public std::runtime_error {
76
77 public:
78         TTFError();
79         explicit TTFError(const std::string &);
80
81 };
82
83 }
84 }
85
86 #endif