Added static method to convert arbitrary ErrorID to a string.

Updated tests to print ErrorID and bool values as strings.
This commit is contained in:
kezenator
2016-11-26 13:54:42 +10:00
parent f80d78d938
commit 5a70071241
3 changed files with 18 additions and 3 deletions

View File

@@ -1749,6 +1749,7 @@ public:
return _errorID;
}
const char* ErrorName() const;
static const char* ErrorName(XMLError errorID);
/// Return a possibly helpful diagnostic location or string.
const char* GetErrorStr1() const {