]> git.localhorst.tv Git - blobs.git/blob - src/app/error.hpp
simple planet render
[blobs.git] / src / app / error.hpp
1 #ifndef BLOBS_APP_ERROR_HPP_
2 #define BLOBS_APP_ERROR_HPP_
3
4 #include <al.h>
5 #include <stdexcept>
6
7
8 namespace blobs {
9 namespace app {
10
11 class AlutError
12 : public std::runtime_error {
13
14 public:
15         explicit AlutError(ALenum);
16         AlutError(ALenum, const std::string &);
17
18 };
19
20 class GLError
21 : public std::runtime_error {
22
23 public:
24         explicit GLError(const char *msg);
25
26 };
27
28 class SDLError
29 : public std::runtime_error {
30
31 public:
32         SDLError();
33         explicit SDLError(const std::string &);
34
35 };
36
37 class NetError
38 : public std::runtime_error {
39
40 public:
41         NetError();
42         explicit NetError(const std::string &);
43
44 };
45
46 }
47 }
48
49 #endif