MCPcopy Create free account
hub / github.com/ajkhoury/ReClassEx / SetError

Method SetError

ReClass/tinyxml2.cpp:2309–2322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2307
2308
2309void XMLDocument::SetError( XMLError error, const char* str1, const char* str2, int lineNum )
2310{
2311 TIXMLASSERT( error >= 0 && error < XML_ERROR_COUNT );
2312 _errorID = error;
2313
2314 _errorStr1.Reset();
2315 _errorStr2.Reset();
2316 _errorLineNum = lineNum;
2317
2318 if (str1)
2319 _errorStr1.SetStr(str1);
2320 if (str2)
2321 _errorStr2.SetStr(str2);
2322}
2323
2324/*static*/ const char* XMLDocument::ErrorIDToName(XMLError errorID)
2325{

Callers 2

ParseDeepMethod · 0.80
ParseAttributesMethod · 0.80

Calls 2

SetStrMethod · 0.80
ResetMethod · 0.45

Tested by

no test coverage detected