diff options
Diffstat (limited to 'src/common/ErrnoException.cpp')
-rw-r--r-- | src/common/ErrnoException.cpp | 11 |
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 |