]> git.localhorst.tv Git - tacos.git/blobdiff - src/app/error.hpp
the usual suspects
[tacos.git] / src / app / error.hpp
diff --git a/src/app/error.hpp b/src/app/error.hpp
new file mode 100644 (file)
index 0000000..93a76bd
--- /dev/null
@@ -0,0 +1,42 @@
+#ifndef TACOS_APP_ERROR_HPP_
+#define TACOS_APP_ERROR_HPP_
+
+#include <stdexcept>
+
+
+namespace tacos {
+
+struct AlutError
+: public std::runtime_error {
+
+       explicit AlutError(const char *msg);
+
+};
+
+
+struct GLError
+: public std::runtime_error {
+
+       explicit GLError(const char *msg);
+
+};
+
+
+struct GLCompileError
+: public std::runtime_error {
+
+       explicit GLCompileError(const char *msg, const char *log);
+
+};
+
+
+struct SDLError
+: public std::runtime_error {
+
+       explicit SDLError(const char *msg);
+
+};
+
+}
+
+#endif