X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fsystemerror.h;h=cce3c5c7e6ad4f8662171d6adf735d841f574f72;hb=6af098355f2b037a6f8084f9f6c741e462ffa614;hp=c2387fad828b2de624ef502b58f6cd031a5c0666;hpb=991fabc1956b73a4007859058fb44171000b452e;p=libs%2Fcore.git diff --git a/source/core/systemerror.h b/source/core/systemerror.h index c2387fa..cce3c5c 100644 --- a/source/core/systemerror.h +++ b/source/core/systemerror.h @@ -3,10 +3,11 @@ #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 m_code; @@ -14,9 +15,8 @@ private: public: system_error(const std::string &, int = -1); system_error(const std::string &, const std::string &); - ~system_error() throw() override = default; - int code() const throw() { return m_code; } + int code() const noexcept { return m_code; } private: static std::string get_message(int);