From 06d1d0442276a05b6caad6e3468f4afb1e8ee5df Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 28 Jun 2020 00:03:11 +0800 Subject: ... --- include/cru/platform/exception.hpp | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 include/cru/platform/exception.hpp (limited to 'include/cru/platform/exception.hpp') diff --git a/include/cru/platform/exception.hpp b/include/cru/platform/exception.hpp deleted file mode 100644 index 8b958a1d..00000000 --- a/include/cru/platform/exception.hpp +++ /dev/null @@ -1,28 +0,0 @@ -#pragma once -#include "cru/common/Base.hpp" - -#include - -namespace cru::platform { -class PlatformException : public std::runtime_error { - public: - using runtime_error::runtime_error; // inherit constructors -}; - -// This exception is thrown when a resource is used on another platform. -// Of course, you can't mix resources of two different platform. -// For example, Win32 Brush (may add in the future) with Direct Painter. -class UnsupportPlatformException : public std::runtime_error { - public: - using runtime_error::runtime_error; // inherit constructors -}; - -// This exception is thrown when a resource has been disposed and not usable -// again. -// For example, calling Build twice on a GeometryBuilder::Build will lead to -// this exception. -class ReuseException : public std::runtime_error { - public: - using runtime_error::runtime_error; // inherit constructors -}; -} // namespace cru::platform -- cgit v1.2.3