#include <rapidxml.hpp>
Public Member Functions | |
parse_error (const char *what, void *where) | |
Constructs parse error. More... | |
virtual const char * | what () const throw () |
template<class Ch > | |
Ch * | where () const |
Private Attributes | |
const char * | m_what |
void * | m_where |
Parse error exception. This exception is thrown by the parser when an error occurs. Use what() function to get human-readable error message. Use where() function to get a pointer to position within source text where error was detected.
If throwing exceptions by the parser is undesirable, it can be disabled by defining RAPIDXML_NO_EXCEPTIONS macro before rapidxml.hpp is included. This will cause the parser to call rapidxml::parse_error_handler() function instead of throwing an exception. This function must be defined by the user.
This class derives from std::exception
class.
Definition at line 71 of file rapidxml.hpp.
|
inline |
Constructs parse error.
Definition at line 77 of file rapidxml.hpp.
|
inlinevirtual |
Gets human readable description of error.
Definition at line 85 of file rapidxml.hpp.
|
inline |
Gets pointer to character data where error happened. Ch should be the same as char type of xml_document that produced the error.
Definition at line 94 of file rapidxml.hpp.
|
private |
Definition at line 101 of file rapidxml.hpp.
|
private |
Definition at line 102 of file rapidxml.hpp.