aboutsummaryrefslogtreecommitdiff
path: root/src/common/ErrnoException.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/ErrnoException.cpp')
-rw-r--r--src/common/ErrnoException.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/common/ErrnoException.cpp b/src/common/ErrnoException.cpp
new file mode 100644
index 00000000..df2349ac
--- /dev/null
+++ b/src/common/ErrnoException.cpp
@@ -0,0 +1,11 @@
+#include "cru/common/ErrnoException.hpp"
+
+#include <errno.h>
+
+namespace cru {
+ErrnoException::ErrnoException(const String& message)
+ : ErrnoException(message, errno) {}
+
+ErrnoException::ErrnoException(const String& message, int errno_code)
+ : Exception(message), errno_code_(errno_code) {}
+} // namespace cru