MiniEngine/SDLWrapper/ErrorViewer.h

17 lines
296 B
C++
Raw Normal View History

2017-06-18 20:37:45 +08:00
#pragma once
#include <exception>
#include <string>
2017-07-31 00:18:10 +08:00
namespace MiniEngine
{
2017-06-18 20:37:45 +08:00
class ErrorViewer : public std::exception
{
public:
void fetch();
std::string getError() const;
const char* what() const noexcept override;
2017-06-18 20:37:45 +08:00
private:
std::string str;
};
2017-07-31 00:18:10 +08:00
} /// End of namespace MiniEngine