]> git.localhorst.tv Git - blank.git/blobdiff - src/app/init.hpp
move common exceptions to app/error
[blank.git] / src / app / init.hpp
index 9385d44979b815078f609e332cf9617b08607e3c..42a4176af29ba02f03665ac0981f071222748e88 100644 (file)
@@ -1,42 +1,14 @@
 #ifndef BLANK_APP_INIT_HPP_
 #define BLANK_APP_INIT_HPP_
 
+#include "error.hpp"
+
 #include <al.h>
 #include <SDL.h>
-#include <stdexcept>
-#include <string>
 
 
 namespace blank {
 
-class AlutError
-: public std::runtime_error {
-
-public:
-       explicit AlutError(ALenum);
-       AlutError(ALenum, const std::string &);
-
-};
-
-class SDLError
-: public std::runtime_error {
-
-public:
-       SDLError();
-       explicit SDLError(const std::string &);
-
-};
-
-class NetError
-: public std::runtime_error {
-
-public:
-       NetError();
-       explicit NetError(const std::string &);
-
-};
-
-
 class InitSDL {
 
 public: