1 #ifndef POSIXX_ERROR_HPP_
2 #define POSIXX_ERROR_HPP_
14 struct error: std::runtime_error
17 /// Default constructor, gets the error number and string from errno.
21 * Constructor with a more detailed message.
23 * @param where Description about where the error was thrown.
25 explicit error(const std::string& where) throw ();
30 /// Error number, as of errno.
39 posixx::error::error() throw():
40 std::runtime_error(strerror(errno)), no(errno)
45 posixx::error::error(const std::string& where) throw ():
46 std::runtime_error(where + ": " + strerror(errno)), no(errno)
51 posixx::error::~error() throw ()
55 #endif // POSIXX_ERROR_HPP_