MiniEngine/SDLWrapper/ErrorViewer.cpp

21 lines
301 B
C++
Raw Normal View History

2017-06-18 20:37:45 +08:00
#include "ErrorViewer.h"
#include "include.h"
2017-07-31 00:18:10 +08:00
namespace MiniEngine
{
2017-06-18 20:37:45 +08:00
void ErrorViewer::fetch()
{
str = SDL_GetError();
}
std::string ErrorViewer::getError() const
{
return str;
}
const char * ErrorViewer::what() const noexcept
2017-06-18 20:37:45 +08:00
{
return str.c_str();
}
2017-07-31 00:18:10 +08:00
} /// End of namespace MiniEngine