parse_error Class Reference

Parse error exception. More...

#include <ArmarXCore/core/rapidxml/rapidxml.hpp>

+ Inheritance diagram for parse_error:

Public Member Functions

 parse_error (const char *what, void *where)
 Constructs parse error. More...
const char * what () const noexcept override
 Gets human readable description of error. More...
template<class Ch >
Ch * where () const
 Gets pointer to character data where error happened. More...

Detailed Description

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 72 of file rapidxml.hpp.

Constructor & Destructor Documentation

◆ parse_error()

parse_error ( const char *  what,
void *  where 

Constructs parse error.

Definition at line 78 of file rapidxml.hpp.

Member Function Documentation

◆ what()

const char* what ( ) const

Gets human readable description of error.

Pointer to null terminated description of the error.

Definition at line 86 of file rapidxml.hpp.

+ Here is the caller graph for this function:

◆ where()

Ch* where ( ) const

Gets pointer to character data where error happened.

Ch should be the same as char type of xml_document that produced the error.

Pointer to location within the parsed string where error occured.

Definition at line 95 of file rapidxml.hpp.

The documentation for this class was generated from the following file: