diff options
Diffstat (limited to 'src/Exceptions.h')
| -rw-r--r-- | src/Exceptions.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Exceptions.h b/src/Exceptions.h new file mode 100644 index 0000000..4378b8d --- /dev/null +++ b/src/Exceptions.h @@ -0,0 +1,14 @@ +#pragma once + +#include <stdexcept> + +class CPUException : std::runtime_error { +public: + CPUException(std::string what) : std::runtime_error(what), m_What(what) { } + ~CPUException() = default; + + std::string GetMessage() { return m_What; } + +private: + std::string m_What; +}; |
