X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fsystemerror.h;h=cce3c5c7e6ad4f8662171d6adf735d841f574f72;hb=HEAD;hp=4b7493d47a5409bfb7902c12b9d997bf7b3cd5ee;hpb=c7afef88380ebebc8c2b04e48664d73281ec8848;p=libs%2Fcore.git diff --git a/source/core/systemerror.h b/source/core/systemerror.h index 4b7493d..cce3c5c 100644 --- a/source/core/systemerror.h +++ b/source/core/systemerror.h @@ -3,19 +3,20 @@ #include #include +#include "mspcore_api.h" namespace Msp { -class system_error: public std::runtime_error +class MSPCORE_API 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);