class system_error: public std::runtime_error
{
private:
- int code_;
+ int m_code;
public:
system_error(const std::string &, int = -1);
- virtual ~system_error() throw() { }
+ system_error(const std::string &, const std::string &);
+ virtual ~system_error() throw() = default;
- int code() const throw() { return code_; }
+ int code() const throw() { return m_code; }
private:
static std::string get_message(int);