#include "exceptions.hpp" #include #include namespace ougge { SDLException_::SDLException_(const std::string& _file,const std::string& _func, int _line_n) : UsefulException_(std::string("SDLException: ") + SDL_GetError(), _file, _func, _line_n) { SDL_ClearError(); } IMGException_::IMGException_(const std::string& _file,const std::string& _func, int _line_n) : UsefulException_(std::string("IMGException: ") + IMG_GetError(), _file, _func, _line_n) { SDL_ClearError(); } }