39 const char*
what() const noexcept
override 41 return m_reason.c_str();
54 m_reason.append(
": ");
55 m_reason.append(reason);
59 std::string m_reason{};
shapes_exception(const char *reason)
Creates a shapes exception.
Exception thrown when a geometry error is found.
Exception thrown when a sequence index is out of range.
void set_reason(const std::string &reason)
Set the exception reason.
const char * what() const noexceptoverride
Returns the exception reason.
parse_error(const std::string &reason)
Creates a parse error with the given reason.
Exception thrown when method or routine is not implemented.
Exception thrown when an error has been found while parsing.
not_implemented_error(const std::string &reason)
Creates a not implemented error exception.
geometry_error(const std::string &reason)
Creates a geometry error exception.
not_implemented_error()
Creates a not implemented error exception.
index_error(const std::string &reason)
Creates a index error exception.