diff options
Diffstat (limited to 'include/cru/platform/Exception.hpp')
-rw-r--r-- | include/cru/platform/Exception.hpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/include/cru/platform/Exception.hpp b/include/cru/platform/Exception.hpp deleted file mode 100644 index b50e8c67..00000000 --- a/include/cru/platform/Exception.hpp +++ /dev/null @@ -1,34 +0,0 @@ -#pragma once -#include "Base.hpp" -#include "cru/common/Base.hpp" -#include "cru/common/Exception.hpp" -#include "cru/common/platform/Exception.hpp" - -namespace cru::platform { -// 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 CRU_PLATFORM_API UnsupportPlatformException : public Exception { - public: - using Exception::Exception; // inherit constructors - - CRU_DEFAULT_COPY(UnsupportPlatformException) - CRU_DEFAULT_MOVE(UnsupportPlatformException) - - CRU_DEFAULT_DESTRUCTOR(UnsupportPlatformException) -}; - -// 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 CRU_PLATFORM_API ReuseException : public Exception { - public: - using Exception::Exception; // inherit constructors - - CRU_DEFAULT_COPY(ReuseException) - CRU_DEFAULT_MOVE(ReuseException) - - CRU_DEFAULT_DESTRUCTOR(ReuseException) -}; -} // namespace cru::platform |