Orcus
|
#include <exception.hpp>
Public Member Functions | |
parse_error (std::string msg, std::ptrdiff_t offset) | |
std::ptrdiff_t | offset () const |
![]() | |
general_error (std::string msg) | |
general_error (std::string_view cls, std::string_view msg) | |
virtual const char * | what () const noexcept |
Static Public Member Functions | |
static void | throw_with (std::string_view msg_before, char c, std::string_view msg_after, std::ptrdiff_t offset) |
static void | throw_with (std::string_view msg_before, std::string_view msg, std::string_view msg_after, std::ptrdiff_t offset) |
Protected Member Functions | |
parse_error (std::string_view cls, std::string_view msg, std::ptrdiff_t offset) | |
offset in the stream where the error occurred. | |
![]() | |
void | append_msg (const std::string &s) |
Exception related to a parsing error that includes an offset in the stream where the error occurred.
std::ptrdiff_t orcus::parse_error::offset | ( | ) | const |
Get the offset in a stream associated with the error.