No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tinyxmlerror.cpp 1.8KB

  1. /*
  3. Original code (2.0 and earlier )copyright (c) 2000-2006 Lee Thomason (
  4. This software is provided 'as-is', without any express or implied
  5. warranty. In no event will the authors be held liable for any
  6. damages arising from the use of this software.
  7. Permission is granted to anyone to use this software for any
  8. purpose, including commercial applications, and to alter it and
  9. redistribute it freely, subject to the following restrictions:
  10. 1. The origin of this software must not be misrepresented; you must
  11. not claim that you wrote the original software. If you use this
  12. software in a product, an acknowledgment in the product documentation
  13. would be appreciated but is not required.
  14. 2. Altered source versions must be plainly marked as such, and
  15. must not be misrepresented as being the original software.
  16. 3. This notice may not be removed or altered from any source
  17. distribution.
  18. */
  19. #include "tinyxml.h"
  20. // The goal of the seperate error file is to make the first
  21. // step towards localization. tinyxml (currently) only supports
  22. // english error messages, but the could now be translated.
  23. //
  24. // It also cleans up the code a bit.
  25. //
  26. const char* TiXmlBase::errorString[ TiXmlBase::TIXML_ERROR_STRING_COUNT ] =
  27. {
  28. "No error",
  29. "Error",
  30. "Failed to open file",
  31. "Error parsing Element.",
  32. "Failed to read Element name",
  33. "Error reading Element value.",
  34. "Error reading Attributes.",
  35. "Error: empty tag.",
  36. "Error reading end tag.",
  37. "Error parsing Unknown.",
  38. "Error parsing Comment.",
  39. "Error parsing Declaration.",
  40. "Error document empty.",
  41. "Error null (0) or unexpected EOF found in input stream.",
  42. "Error parsing CDATA.",
  43. "Error when TiXmlDocument added to document, because TiXmlDocument can only be at the root.",
  44. };