ougge/src/exceptions.cpp
2024-08-01 20:43:45 +03:00

20 lines
518 B
C++

#include "exceptions.hpp"
#include <SDL.h>
#include <SDL_image.h>
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();
}
}