1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 21:13:05 +01:00
Files
OpenRCT2/src/core/Exception.hpp
2016-01-23 18:58:31 +00:00

25 lines
466 B
C++

#pragma once
#include "../common.h"
#include <exception>
class Exception : public std::exception
{
public:
Exception() : Exception(nullptr) { }
Exception(const char * message) : std::exception()
{
_message = message;
}
virtual ~Exception() { }
const char * what() const throw() override { return _message; }
const char * GetMessage() const { return _message; }
private:
const char * _message;
};