summaryrefslogtreecommitdiff
path: root/src/Exceptions.h
diff options
context:
space:
mode:
author0x221E <0x221E@0xinfinity.dev>2026-04-12 16:59:40 +0200
committer0x221E <0x221E@0xinfinity.dev>2026-04-12 16:59:40 +0200
commita66c7433c2c11b8b6c99142277ed4e16b1a2a465 (patch)
treee54bcfb59c303acf6118fd11f06d5c0bd5f24e5d /src/Exceptions.h
initial commitHEADmaster
Diffstat (limited to 'src/Exceptions.h')
-rw-r--r--src/Exceptions.h14
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;
+};