From 76746163e04555eb129fc2590ee8b0312fad872c Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Mon, 3 Nov 2025 20:12:12 +0800 Subject: Merge platform/Exception.h Check.h to Base.h. --- src/platform/Exception.cpp | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 src/platform/Exception.cpp (limited to 'src/platform/Exception.cpp') diff --git a/src/platform/Exception.cpp b/src/platform/Exception.cpp deleted file mode 100644 index 6a718f63..00000000 --- a/src/platform/Exception.cpp +++ /dev/null @@ -1,34 +0,0 @@ -#include "cru/platform/Exception.h" -#include "cru/base/Exception.h" - -#include -#include -#include - -namespace cru::platform { -PlatformNotMatchException::PlatformNotMatchException( - std::string resource_platform, std::string target_platform, - std::optional additional_message) - : PlatformException(std::format( - "Resource platform '{}' does not match target platform '{}'.", - resource_platform_, target_platform_)), - resource_platform_(std::move(resource_platform)), - target_platform_(std::move(target_platform)) { - AppendMessage(additional_message); -} - -PlatformNotMatchException::~PlatformNotMatchException() {} - -PlatformUnsupportedException::PlatformUnsupportedException( - std::string platform, std::string operation, - std::optional additional_message) - : PlatformException( - std::format("Operation '{}' is not supported on platform '{}'.", - operation, platform)), - platform_(std::move(platform)), - operation_(std::move(operation)) { - AppendMessage(additional_message); -} - -PlatformUnsupportedException::~PlatformUnsupportedException() {} -} // namespace cru::platform -- cgit v1.2.3