1 2 3 4 5 6 7 8 9 10 11 12 13 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; };