aboutsummaryrefslogtreecommitdiff
path: root/include/cru/common/platform
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2023-07-05 01:54:08 +0800
committercrupest <crupest@outlook.com>2023-07-05 01:54:08 +0800
commitbcfd51a7fabf7adf5f134247ca1020fac98b24b5 (patch)
tree41471cee6af6a7e49140e50ba818366b316c8ea7 /include/cru/common/platform
parentaa9bc6bb7c11e810745c80548dd5ed5b2cb08740 (diff)
downloadcru-bcfd51a7fabf7adf5f134247ca1020fac98b24b5.tar.gz
cru-bcfd51a7fabf7adf5f134247ca1020fac98b24b5.tar.bz2
cru-bcfd51a7fabf7adf5f134247ca1020fac98b24b5.zip
Add CFileStream. Move ErrnoException.
Diffstat (limited to 'include/cru/common/platform')
-rw-r--r--include/cru/common/platform/unix/ErrnoException.h18
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