Microsoft Information Protection (MIP) SDK for C++: Reference 1.15
Doxygen-generated documentation for MIP SDK written in C++
Loading...
Searching...
No Matches
xml::XmlParserException Class Reference

#include <src/api/mip/delegate_errors/xml_parser_exception.h>

+ Inheritance diagram for xml::XmlParserException:
+ Collaboration diagram for xml::XmlParserException:

Public Member Functions

virtual char const * what () const noexcept override
 
 XmlParserException (const std::string &message, const XmlReader &reader)
 

Detailed Description

Definition at line 21 of file xml_parser_exception.h.

Constructor & Destructor Documentation

◆ XmlParserException()

xml::XmlParserException::XmlParserException ( const std::string & message,
const XmlReader & reader )
inline

Definition at line 23 of file xml_parser_exception.h.

23 {
24 string name;
25 string value;
26 mMessage = message +
27 ", NodeType: " + std::to_string(static_cast<int>(reader.GetNodeType())) +
28 ", Name: " + (reader.GetName(name) ? ("'" + name + "'") : "NONE" ) +
29 ", Value: " + (reader.GetValue(value) ? ("'" + value + "'") : "NONE") +
30 ", Ancestors: " + reader.GetAncestors();
31 }

References xml::XmlReader::GetAncestors(), xml::XmlReader::GetName(), xml::XmlReader::GetNodeType(), and xml::XmlReader::GetValue().

Member Function Documentation

◆ what()

virtual char const * xml::XmlParserException::what ( ) const
inlineoverridevirtualnoexcept

Definition at line 32 of file xml_parser_exception.h.

32{ return mMessage.c_str(); }

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