Exceptions

class general_error : public std::exception

Subclassed by orcus::css_document_tree::insertion_error, orcus::interface_error, orcus::invalid_map_error, orcus::json::document_error, orcus::json_structure_error, orcus::parse_error, orcus::value_error, orcus::xml_structure_error, orcus::xpath_error, orcus::yaml::document_error, orcus::zip_error

Public Functions

explicit general_error(std::string msg)
explicit general_error(std::string_view cls, std::string_view msg)
virtual ~general_error() noexcept
virtual const char *what() const noexcept
class invalid_arg_error : public std::invalid_argument

Public Functions

explicit invalid_arg_error(const std::string &msg)
virtual ~invalid_arg_error() noexcept
class xml_structure_error : public orcus::general_error

Public Functions

explicit xml_structure_error(std::string msg)
virtual ~xml_structure_error() noexcept
class json_structure_error : public orcus::general_error

Public Functions

explicit json_structure_error(std::string msg)
virtual ~json_structure_error() noexcept
class invalid_map_error : public orcus::general_error

Public Functions

explicit invalid_map_error(std::string msg)
virtual ~invalid_map_error() noexcept
class value_error : public orcus::general_error

Public Functions

explicit value_error(std::string msg)
virtual ~value_error() noexcept
class xpath_error : public orcus::general_error

Error indicating improper xpath syntax.

Public Functions

xpath_error(std::string msg)
virtual ~xpath_error() noexcept
class interface_error : public orcus::general_error

This gets thrown when a public interface method is expected to return a non-null pointer to another interface but actually returns a null pointer.

Public Functions

interface_error(std::string msg)
virtual ~interface_error() noexcept
class parse_error : public orcus::general_error

Exception related to a parsing error that includes an offset in the stream where the error occurred.

Subclassed by orcus::malformed_xml_error

Public Functions

parse_error(std::string msg, std::ptrdiff_t offset)
std::ptrdiff_t offset() const

Get the offset in a stream associated with the error.

Returns:

offset in a stream where the error occurred.

Public Static 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)
class malformed_xml_error : public orcus::parse_error

This exception is thrown when SAX parser detects a malformed XML document.

Public Functions

malformed_xml_error() = delete
malformed_xml_error(std::string_view msg, std::ptrdiff_t offset)
virtual ~malformed_xml_error()
class zip_error : public orcus::general_error

Exception related to parsing of zip archive stream.

Public Functions

zip_error(std::string_view msg)
virtual ~zip_error()