Lines Matching defs:error
616 /* Register the error handling callback function error under the name
619 callback name, when name is specified as the error parameter
621 Return 0 on success, -1 on error */
622 int PyCodec_RegisterError(const char *name, PyObject *error)
627 if (!PyCallable_Check(error)) {
632 name, error);
635 /* Lookup the error handling callback function registered under the
636 name error. As a special case NULL can be passed, in which case
637 the error handling callback for strict encoding will be returned. */
653 PyErr_Format(PyExc_LookupError, "unknown error handler name '%.400s'", name);
661 "don't know how to handle %.200s in error callback",
1420 PyDoc_STR("Implements the 'strict' error handling, which "
1430 PyDoc_STR("Implements the 'ignore' error handling, which "
1440 PyDoc_STR("Implements the 'replace' error handling, which "
1450 PyDoc_STR("Implements the 'xmlcharrefreplace' error handling, "
1461 PyDoc_STR("Implements the 'backslashreplace' error handling, "
1472 PyDoc_STR("Implements the 'namereplace' error handling, "