Orcus
Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
orcus::parse_error Class Reference
Inheritance diagram for orcus::parse_error:
orcus::general_error orcus::css::parse_error orcus::json::parse_error orcus::sax::malformed_xml_error orcus::yaml::parse_error

Public Member Functions

std::ptrdiff_t offset () const
 
- Public Member Functions inherited from orcus::general_error
 general_error (const std::string &msg)
 
 general_error (const std::string &cls, const std::string &msg)
 
virtual const char * what () const throw ()
 

Protected Member Functions

 parse_error (const std::string &msg, std::ptrdiff_t offset)
 offset in the stream where the error occurred.
 
 parse_error (const std::string &cls, const std::string &msg, std::ptrdiff_t offset)
 

Static Protected Member Functions

static std::string build_message (const char *msg_before, char c, const char *msg_after)
 
static std::string build_message (const char *msg_before, const char *p, size_t n, const char *msg_after)