From 73044013ab7d882150f32c959635eecbb5e8e17d Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Mon, 18 Aug 2025 17:49:31 +0800 Subject: Move platform exception. --- include/cru/base/Exception.h | 7 +++++++ include/cru/base/platform/Exception.h | 12 ------------ include/cru/platform/Exception.h | 1 - 3 files changed, 7 insertions(+), 13 deletions(-) delete mode 100644 include/cru/base/platform/Exception.h (limited to 'include') 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 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 diff --git a/include/cru/platform/Exception.h b/include/cru/platform/Exception.h index 2771d4d7..4f9dc9ce 100644 --- a/include/cru/platform/Exception.h +++ b/include/cru/platform/Exception.h @@ -2,7 +2,6 @@ #include "Base.h" #include "cru/base/Base.h" #include "cru/base/Exception.h" -#include "cru/base/platform/Exception.h" #include -- cgit v1.2.3