- Exception(const std::string& msg, bool errno)
- : std::runtime_error(msg), _errno(errno) {}
- Exception(const char *msg, bool errno)
- : std::runtime_error(msg), _errno(errno) {}
+ Exception(const std::string& msg, int in_errno)
+ :
+ std::runtime_error(msg),
+ _errno(in_errno)
+ {}
+
+ Exception(const char *msg, int in_errno)
+ :
+ std::runtime_error(std::string(msg)),
+ _errno(in_errno) {}
+