X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2Ferror.hpp;fp=src%2Fapp%2Ferror.hpp;h=0f22f8a95dd7ec3b81141d3958a9d9b90d28be2b;hb=c0a5ece0f6bacea1b85157a908d710070fb0affd;hp=0000000000000000000000000000000000000000;hpb=307482574d3acac09e38263de521a1826ceec7ce;p=blank.git diff --git a/src/app/error.hpp b/src/app/error.hpp new file mode 100644 index 0000000..0f22f8a --- /dev/null +++ b/src/app/error.hpp @@ -0,0 +1,74 @@ +#ifndef BLANK_APP_ERROR_HPP_ +#define BLANK_APP_ERROR_HPP_ + +#include +#include +#include + + +namespace blank { + +class AlutError +: public std::runtime_error { + +public: + explicit AlutError(ALenum); + AlutError(ALenum, const std::string &); + +}; + + +class GLError +: public std::runtime_error { + +public: + GLError(); + explicit GLError(const std::string &); + +}; + + +class NetError +: public std::runtime_error { + +public: + NetError(); + explicit NetError(const std::string &); + +}; + + +class SDLError +: public std::runtime_error { + +public: + SDLError(); + explicit SDLError(const std::string &); + +}; + + +class SysError +: public std::runtime_error { + +public: + SysError(); + explicit SysError(const std::string &); + explicit SysError(int err_num); + SysError(int err_num, const std::string &); + +}; + + +class TTFError +: public std::runtime_error { + +public: + TTFError(); + explicit TTFError(const std::string &); + +}; + +} + +#endif