MCPcopy Create free account
hub / github.com/comaps/comaps / GetErrorMessage

Method GetErrorMessage

libs/coding/internal/xmlparser.hpp:134–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132 }
133
134 std::string GetErrorMessage()
135 {
136 if (XML_GetErrorCode(m_parser.get()) == XML_ERROR_NONE)
137 return {};
138
139 std::stringstream s;
140 s << "XML parse error at line " << XML_GetCurrentLineNumber(m_parser.get()) << " and byte "
141 << XML_GetCurrentByteIndex(m_parser.get());
142 return s.str();
143 }
144
145private:
146 size_t m_depth;

Callers 1

ReadMethod · 0.80

Calls 1

getMethod · 0.65

Tested by

no test coverage detected