8 #ifndef INCLUDED_ORCUS_EXCEPTION_HPP
9 #define INCLUDED_ORCUS_EXCEPTION_HPP
22 explicit general_error(std::string_view cls, std::string_view msg);
24 virtual const char* what()
const noexcept;
27 void append_msg(
const std::string& s);
95 std::ptrdiff_t m_offset;
98 parse_error(std::string_view cls, std::string_view msg, std::ptrdiff_t offset);
101 parse_error(std::string msg, std::ptrdiff_t offset);
110 static void throw_with(
111 std::string_view msg_before,
char c, std::string_view msg_after, std::ptrdiff_t offset);
113 static void throw_with(
114 std::string_view msg_before, std::string_view msg, std::string_view msg_after, std::ptrdiff_t offset);