1#ifndef API_MIP_DELEGATE_ERRORS_XML_PARSER_EXCEPTION_H_
2#define API_MIP_DELEGATE_ERRORS_XML_PARSER_EXCEPTION_H_
27 ", NodeType: " + std::to_string(
static_cast<int>(reader.
GetNodeType())) +
28 ", Name: " + (reader.
GetName(name) ? (
"'" + name +
"'") :
"NONE" ) +
29 ", Value: " + (reader.
GetValue(value) ? (
"'" + value +
"'") :
"NONE") +
32 virtual char const*
what() const noexcept
override {
return mMessage.c_str(); }
Definition xml_parser_exception.h:21
XmlParserException(const std::string &message, const XmlReader &reader)
Definition xml_parser_exception.h:23
std::string mMessage
Definition xml_parser_exception.h:35
virtual char const * what() const noexcept override
Definition xml_parser_exception.h:32
XmlReader abstraction class.
Definition xml_reader.h:48
virtual std::string GetAncestors() const =0
Returns current node ancestors (for debug text), in the following purpose <node grand parent attribut...
virtual bool GetValue(std::string &value) const =0
Returns if value was found. Sets value only when true. empty value is possible..
virtual XmlNodeType GetNodeType() const =0
Get current node type.
virtual std::string GetName() const =0
Returns the name if found, exception otherwise. empty name is possible.
Definition xml_load_exception.h:12
A file containing the XmlReader interface.