]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/systemerror.h
Modernize noexcept specifiers
[libs/core.git] / source / core / systemerror.h
index 4b7493d47a5409bfb7902c12b9d997bf7b3cd5ee..5edbe9d5062d938e95bc7a9832fe5eea347ad5bc 100644 (file)
@@ -9,13 +9,13 @@ namespace Msp {
 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 &);
 
-       int code() const throw() { return code_; }
+       int code() const noexcept { return m_code; }
 
 private:
        static std::string get_message(int);