11class Exception :
public std::exception {
13 Exception(
const std::string& msg = std::string(),
const std::string& name = std::string(),
14 const std::string& scope = std::string(),
unsigned int code = 0,
15 const std::string& description = std::string())
16 : _msg(msg), _name(name), _scope(scope), _code(code), _description(description) {}
17 virtual const char* what()
const noexcept override {
return _msg.c_str(); }
18 std::string getName()
const noexcept;
19 std::string getScope()
const noexcept;
20 unsigned int getCode()
const noexcept;
21 std::string getDescription()
const noexcept;
22 std::string getFull(
bool JSON =
false)
const noexcept;
23 virtual void rethrow()
const;
30 std::string _description;