aboutsummaryrefslogtreecommitdiff
path: root/src/common/platform/unix/ErrnoException.cpp
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 /src/common/platform/unix/ErrnoException.cpp
parentaa9bc6bb7c11e810745c80548dd5ed5b2cb08740 (diff)
downloadcru-bcfd51a7fabf7adf5f134247ca1020fac98b24b5.tar.gz
cru-bcfd51a7fabf7adf5f134247ca1020fac98b24b5.tar.bz2
cru-bcfd51a7fabf7adf5f134247ca1020fac98b24b5.zip
Add CFileStream. Move ErrnoException.
Diffstat (limited to 'src/common/platform/unix/ErrnoException.cpp')
-rw-r--r--src/common/platform/unix/ErrnoException.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/common/platform/unix/ErrnoException.cpp b/src/common/platform/unix/ErrnoException.cpp
index f2171943..06c42ff6 100644
--- a/src/common/platform/unix/ErrnoException.cpp
+++ b/src/common/platform/unix/ErrnoException.cpp
@@ -1,14 +1,5 @@
#include "cru/common/platform/unix/ErrnoException.h"
-#include "cru/common/Format.h"
-
-#include <errno.h>
-
namespace cru::platform::unix {
-ErrnoException::ErrnoException(const String& message)
- : ErrnoException(message, errno) {}
-
-ErrnoException::ErrnoException(const String& message, int errno_code)
- : PlatformException(Format(u"{}. Errno is {}.", message, errno_code)),
- errno_code_(errno_code) {}
+// Moved to Exception.cpp
} // namespace cru::platform::unix