1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 06:44:38 +01:00
Files
OpenRCT2/src/core/Exception.hpp

20 lines
403 B
C++

#pragma once
#include <exception>
#include "../common.h"
class Exception : public std::exception {
public:
Exception() : std::exception() { }
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;
};