#include <stdexcept>
#include <string>
+#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;
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);