]> git.localhorst.tv Git - tacos.git/blob - src/app/error.hpp
the usual suspects
[tacos.git] / src / app / error.hpp
1 #ifndef TACOS_APP_ERROR_HPP_
2 #define TACOS_APP_ERROR_HPP_
3
4 #include <stdexcept>
5
6
7 namespace tacos {
8
9 struct AlutError
10 : public std::runtime_error {
11
12         explicit AlutError(const char *msg);
13
14 };
15
16
17 struct GLError
18 : public std::runtime_error {
19
20         explicit GLError(const char *msg);
21
22 };
23
24
25 struct GLCompileError
26 : public std::runtime_error {
27
28         explicit GLCompileError(const char *msg, const char *log);
29
30 };
31
32
33 struct SDLError
34 : public std::runtime_error {
35
36         explicit SDLError(const char *msg);
37
38 };
39
40 }
41
42 #endif