MiniEngine/include/SDLWrapper/ErrorViewer.h

18 lines
297 B
C++
Raw Normal View History

2017-06-18 20:37:45 +08:00
#pragma once
#include <exception>
#include <string>
2018-03-04 15:10:49 +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;
};
2018-03-04 15:10:49 +08:00
} /// End of namespace MiniEngine