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);
Definition: exception.hpp:144
Definition: exception.hpp:19
Definition: exception.hpp:83
Definition: exception.hpp:34
Definition: exception.hpp:55
Definition: exception.hpp:48
Definition: exception.hpp:94
std::ptrdiff_t offset() const
parse_error(std::string_view cls, std::string_view msg, std::ptrdiff_t offset)
offset in the stream where the error occurred.
Definition: exception.hpp:62
Definition: exception.hpp:41
Definition: exception.hpp:72
Definition: exception.hpp:132