From bcfd51a7fabf7adf5f134247ca1020fac98b24b5 Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 5 Jul 2023 01:54:08 +0800 Subject: Add CFileStream. Move ErrnoException. --- include/cru/common/platform/unix/ErrnoException.h | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'include/cru/common/platform/unix') 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 -- cgit v1.2.3