MiniEngine/SDLWrapper/ErrorViewer.h

15 lines
283 B
C++
Raw Normal View History

2017-06-18 20:37:45 +08:00
#pragma once
#include <exception>
#include <string>
#include "begin_code.h"
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;
};
#include "end_code.h"