1
1
mirror of https://github.com/red0124/ssp.git synced 2025-03-11 15:47:56 +01:00
ssp/include/ss/exception.hpp

24 lines
346 B
C++

#pragma once
#include <exception>
#include <string>
namespace ss {
////////////////
// exception
////////////////
class exception : public std::exception {
std::string msg_;
public:
exception(const std::string& msg): msg_{msg} {
}
virtual char const* what() const noexcept {
return msg_.c_str();
}
};
} /* ss */