diff options
Diffstat (limited to 'include/cru/common/platform')
-rw-r--r-- | include/cru/common/platform/unix/ErrnoException.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/include/cru/common/platform/unix/ErrnoException.h b/include/cru/common/platform/unix/ErrnoException.h index 00e1864b..97edcc78 100644 --- a/include/cru/common/platform/unix/ErrnoException.h +++ b/include/cru/common/platform/unix/ErrnoException.h @@ -7,22 +7,8 @@ #include "../Exception.h" namespace cru::platform::unix { -class ErrnoException : public PlatformException { - public: - ErrnoException() : ErrnoException(String{}) {} - explicit ErrnoException(const String& message); - ErrnoException(const String& message, int errno_code); - - CRU_DELETE_COPY(ErrnoException) - CRU_DELETE_MOVE(ErrnoException) - - ~ErrnoException() override = default; - - int GetErrnoCode() const { return errno_code_; } - - private: - int errno_code_; -}; +// Moved to Exception.h +using ErrnoException = cru::ErrnoException; } // namespace cru::platform::unix #endif |