Lines Matching defs:error
51 PyObject *error;
99 /* Set an integer attribute on the error object; return true on success,
131 err = PyObject_CallOneArg(state->error, buffer);
137 PyErr_SetObject(state->error, err);
181 /* This handler is used when an error has been detected, in the hope
194 /* Dummy character data handler used when an error (exception) has
780 goto error;
790 goto error;
798 goto error;
805 error:
1569 Returns string error for given number.
1664 {"XML_ERROR_SYNTAX", "syntax error"},
1683 {"XML_ERROR_EXTERNAL_ENTITY_HANDLING", "error in processing external entity reference"},
1727 /* NOTE: This keeps the source of truth regarding error
1779 goto error;
1789 goto error;
1795 "error conditions.") < 0) {
1796 goto error;
1802 goto error;
1809 goto error;
1815 error:
1870 goto error;
1875 goto error;
1879 goto error;
1883 error:
1907 state->error = PyErr_NewException("xml.parsers.expat.ExpatError",
1909 if (state->error == NULL) {
1915 if (PyModule_AddObjectRef(mod, "error", state->error) < 0) {
1919 if (PyModule_AddObjectRef(mod, "ExpatError", state->error) < 0) {
2026 Py_VISIT(state->error);
2036 Py_CLEAR(state->error);