aboutsummaryrefslogtreecommitdiff
path: root/include/cru/base
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/base')
-rw-r--r--include/cru/base/Exception.h7
-rw-r--r--include/cru/base/platform/Exception.h12
2 files changed, 7 insertions, 12 deletions
diff --git a/include/cru/base/Exception.h b/include/cru/base/Exception.h
index 609fd2c9..b299acc4 100644
--- a/include/cru/base/Exception.h
+++ b/include/cru/base/Exception.h
@@ -34,6 +34,13 @@ class CRU_BASE_API Exception : public std::exception {
std::unique_ptr<std::exception> inner_;
};
+class CRU_BASE_API PlatformException : public Exception {
+ public:
+ using Exception::Exception; // inherit constructors
+
+ CRU_DEFAULT_DESTRUCTOR(PlatformException)
+};
+
class CRU_BASE_API TextEncodeException : public Exception {
public:
using Exception::Exception;
diff --git a/include/cru/base/platform/Exception.h b/include/cru/base/platform/Exception.h
deleted file mode 100644
index 74dd6ad4..00000000
--- a/include/cru/base/platform/Exception.h
+++ /dev/null
@@ -1,12 +0,0 @@
-#pragma once
-#include "../Base.h"
-#include "../Exception.h"
-
-namespace cru::platform {
-class CRU_BASE_API PlatformException : public Exception {
- public:
- using Exception::Exception; // inherit constructors
-
- CRU_DEFAULT_DESTRUCTOR(PlatformException)
-};
-} // namespace cru::platform