aboutsummaryrefslogtreecommitdiff
path: root/include/cru/base/Exception.h
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-08-18 17:49:31 +0800
committerYuqian Yang <crupest@crupest.life>2025-08-18 17:49:31 +0800
commit73044013ab7d882150f32c959635eecbb5e8e17d (patch)
tree609ec8bb6223b1b3c95d53820e78a4b63438f227 /include/cru/base/Exception.h
parent18c64a5e92f7d8583cb091881deae7611a2bce98 (diff)
downloadcru-73044013ab7d882150f32c959635eecbb5e8e17d.tar.gz
cru-73044013ab7d882150f32c959635eecbb5e8e17d.tar.bz2
cru-73044013ab7d882150f32c959635eecbb5e8e17d.zip
Move platform exception.
Diffstat (limited to 'include/cru/base/Exception.h')
-rw-r--r--include/cru/base/Exception.h7
1 files changed, 7 insertions, 0 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;