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(); }
XmlParserException(const std::string &message, const XmlReader &reader)
virtual char const * what() const noexcept override
XmlReader abstraction class.
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.
virtual XmlNodeType GetNodeType() const =0
Get current node type.
virtual std::string GetName() const =0
Returns the name if found, exception otherwise.
A file containing the XmlReader interface.