MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlErrString

Function xmlErrString

ThirdParty/libxml2/vtklibxml2/error.c:1043–1368  ·  view source on GitHub ↗

* xmlErrString: * @code: an xmlParserErrors code * * Returns an error message for a code. */

Source from the content-addressed store, hash-verified

1041 * Returns an error message for a code.
1042 */
1043const char *
1044xmlErrString(xmlParserErrors code) {
1045 const char *errmsg;
1046
1047 switch (code) {
1048 case XML_ERR_INVALID_HEX_CHARREF:
1049 errmsg = "CharRef: invalid hexadecimal value";
1050 break;
1051 case XML_ERR_INVALID_DEC_CHARREF:
1052 errmsg = "CharRef: invalid decimal value";
1053 break;
1054 case XML_ERR_INVALID_CHARREF:
1055 errmsg = "CharRef: invalid value";
1056 break;
1057 case XML_ERR_INTERNAL_ERROR:
1058 errmsg = "internal error";
1059 break;
1060 case XML_ERR_PEREF_AT_EOF:
1061 errmsg = "PEReference at end of document";
1062 break;
1063 case XML_ERR_PEREF_IN_PROLOG:
1064 errmsg = "PEReference in prolog";
1065 break;
1066 case XML_ERR_PEREF_IN_EPILOG:
1067 errmsg = "PEReference in epilog";
1068 break;
1069 case XML_ERR_PEREF_NO_NAME:
1070 errmsg = "PEReference: no name";
1071 break;
1072 case XML_ERR_PEREF_SEMICOL_MISSING:
1073 errmsg = "PEReference: expecting ';'";
1074 break;
1075 case XML_ERR_ENTITY_LOOP:
1076 errmsg = "Detected an entity reference loop";
1077 break;
1078 case XML_ERR_ENTITY_NOT_STARTED:
1079 errmsg = "EntityValue: \" or ' expected";
1080 break;
1081 case XML_ERR_ENTITY_PE_INTERNAL:
1082 errmsg = "PEReferences forbidden in internal subset";
1083 break;
1084 case XML_ERR_ENTITY_NOT_FINISHED:
1085 errmsg = "EntityValue: \" or ' expected";
1086 break;
1087 case XML_ERR_ATTRIBUTE_NOT_STARTED:
1088 errmsg = "AttValue: \" or ' expected";
1089 break;
1090 case XML_ERR_LT_IN_ATTRIBUTE:
1091 errmsg = "Unescaped '<' not allowed in attributes values";
1092 break;
1093 case XML_ERR_LITERAL_NOT_STARTED:
1094 errmsg = "SystemLiteral \" or ' expected";
1095 break;
1096 case XML_ERR_LITERAL_NOT_FINISHED:
1097 errmsg = "Unfinished System or Public ID \" or ' expected";
1098 break;
1099 case XML_ERR_MISPLACED_CDATA_END:
1100 errmsg = "Sequence ']]>' not allowed in content";

Callers 3

xmlCtxtErrIOFunction · 0.85
xmlFatalErrFunction · 0.85
__xmlIOErrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected