Public Member Functions | Private Attributes | List of all members
rapidxml::parse_error Class Reference

#include <rapidxml.hpp>

Inheritance diagram for rapidxml::parse_error:
Inheritance graph
[legend]

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
 

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

Constructor & Destructor Documentation

rapidxml::parse_error::parse_error ( const char *  what,
void *  where 
)
inline

Constructs parse error.

Definition at line 78 of file rapidxml.hpp.

Member Function Documentation

virtual const char* rapidxml::parse_error::what ( ) const
throw (
)
inlinevirtual

Gets human readable description of error.

Returns
Pointer to null terminated description of the error.

Definition at line 82 of file rapidxml.hpp.

template<class Ch >
Ch* rapidxml::parse_error::where ( ) const
inline

Gets pointer to character data where error happened. Ch should be the same as char type of xml_document that produced the error.

Returns
Pointer to location within the parsed string where error occured.

Definition at line 89 of file rapidxml.hpp.

Member Data Documentation

const char* rapidxml::parse_error::m_what
private

Definition at line 94 of file rapidxml.hpp.

void* rapidxml::parse_error::m_where
private

Definition at line 95 of file rapidxml.hpp.


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


livox_ros_driver
Author(s): Livox Dev Team
autogenerated on Mon Mar 15 2021 02:40:46