Lines Matching refs:exc
661 static void wrong_exception_type(PyObject *exc) in wrong_exception_type() argument
665 exc->ob_type->tp_name); in wrong_exception_type()
668 PyObject *PyCodec_StrictErrors(PyObject *exc) in PyCodec_StrictErrors() argument
670 if (PyExceptionInstance_Check(exc)) in PyCodec_StrictErrors()
671 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_StrictErrors()
678 PyObject *PyCodec_IgnoreErrors(PyObject *exc) in PyCodec_IgnoreErrors() argument
682 if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeEncodeError)) { in PyCodec_IgnoreErrors()
683 if (PyUnicodeEncodeError_GetEnd(exc, &end)) in PyCodec_IgnoreErrors()
686 else if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeDecodeError)) { in PyCodec_IgnoreErrors()
687 if (PyUnicodeDecodeError_GetEnd(exc, &end)) in PyCodec_IgnoreErrors()
690 else if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeTranslateError)) { in PyCodec_IgnoreErrors()
691 if (PyUnicodeTranslateError_GetEnd(exc, &end)) in PyCodec_IgnoreErrors()
695 wrong_exception_type(exc); in PyCodec_IgnoreErrors()
702 PyObject *PyCodec_ReplaceErrors(PyObject *exc) in PyCodec_ReplaceErrors() argument
706 if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeEncodeError)) { in PyCodec_ReplaceErrors()
710 if (PyUnicodeEncodeError_GetStart(exc, &start)) in PyCodec_ReplaceErrors()
712 if (PyUnicodeEncodeError_GetEnd(exc, &end)) in PyCodec_ReplaceErrors()
725 else if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeDecodeError)) { in PyCodec_ReplaceErrors()
726 if (PyUnicodeDecodeError_GetEnd(exc, &end)) in PyCodec_ReplaceErrors()
732 else if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeTranslateError)) { in PyCodec_ReplaceErrors()
736 if (PyUnicodeTranslateError_GetStart(exc, &start)) in PyCodec_ReplaceErrors()
738 if (PyUnicodeTranslateError_GetEnd(exc, &end)) in PyCodec_ReplaceErrors()
752 wrong_exception_type(exc); in PyCodec_ReplaceErrors()
757 PyObject *PyCodec_XMLCharRefReplaceErrors(PyObject *exc) in PyCodec_XMLCharRefReplaceErrors() argument
759 if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeEncodeError)) { in PyCodec_XMLCharRefReplaceErrors()
769 if (PyUnicodeEncodeError_GetStart(exc, &start)) in PyCodec_XMLCharRefReplaceErrors()
771 if (PyUnicodeEncodeError_GetEnd(exc, &end)) in PyCodec_XMLCharRefReplaceErrors()
773 if (!(object = PyUnicodeEncodeError_GetObject(exc))) in PyCodec_XMLCharRefReplaceErrors()
850 wrong_exception_type(exc); in PyCodec_XMLCharRefReplaceErrors()
855 PyObject *PyCodec_BackslashReplaceErrors(PyObject *exc) in PyCodec_BackslashReplaceErrors() argument
866 if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeDecodeError)) { in PyCodec_BackslashReplaceErrors()
868 if (PyUnicodeDecodeError_GetStart(exc, &start)) in PyCodec_BackslashReplaceErrors()
870 if (PyUnicodeDecodeError_GetEnd(exc, &end)) in PyCodec_BackslashReplaceErrors()
872 if (!(object = PyUnicodeDecodeError_GetObject(exc))) in PyCodec_BackslashReplaceErrors()
893 if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeEncodeError)) { in PyCodec_BackslashReplaceErrors()
894 if (PyUnicodeEncodeError_GetStart(exc, &start)) in PyCodec_BackslashReplaceErrors()
896 if (PyUnicodeEncodeError_GetEnd(exc, &end)) in PyCodec_BackslashReplaceErrors()
898 if (!(object = PyUnicodeEncodeError_GetObject(exc))) in PyCodec_BackslashReplaceErrors()
901 else if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeTranslateError)) { in PyCodec_BackslashReplaceErrors()
902 if (PyUnicodeTranslateError_GetStart(exc, &start)) in PyCodec_BackslashReplaceErrors()
904 if (PyUnicodeTranslateError_GetEnd(exc, &end)) in PyCodec_BackslashReplaceErrors()
906 if (!(object = PyUnicodeTranslateError_GetObject(exc))) in PyCodec_BackslashReplaceErrors()
910 wrong_exception_type(exc); in PyCodec_BackslashReplaceErrors()
964 PyObject *PyCodec_NameReplaceErrors(PyObject *exc) in PyCodec_NameReplaceErrors() argument
966 if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeEncodeError)) { in PyCodec_NameReplaceErrors()
978 if (PyUnicodeEncodeError_GetStart(exc, &start)) in PyCodec_NameReplaceErrors()
980 if (PyUnicodeEncodeError_GetEnd(exc, &end)) in PyCodec_NameReplaceErrors()
982 if (!(object = PyUnicodeEncodeError_GetObject(exc))) in PyCodec_NameReplaceErrors()
1052 wrong_exception_type(exc); in PyCodec_NameReplaceErrors()
1126 PyCodec_SurrogatePassErrors(PyObject *exc) in PyCodec_SurrogatePassErrors() argument
1139 if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeEncodeError)) { in PyCodec_SurrogatePassErrors()
1141 if (PyUnicodeEncodeError_GetStart(exc, &start)) in PyCodec_SurrogatePassErrors()
1143 if (PyUnicodeEncodeError_GetEnd(exc, &end)) in PyCodec_SurrogatePassErrors()
1145 if (!(object = PyUnicodeEncodeError_GetObject(exc))) in PyCodec_SurrogatePassErrors()
1147 if (!(encode = PyUnicodeEncodeError_GetEncoding(exc))) { in PyCodec_SurrogatePassErrors()
1160 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_SurrogatePassErrors()
1178 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_SurrogatePassErrors()
1216 else if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeDecodeError)) { in PyCodec_SurrogatePassErrors()
1219 if (PyUnicodeDecodeError_GetStart(exc, &start)) in PyCodec_SurrogatePassErrors()
1221 if (PyUnicodeDecodeError_GetEnd(exc, &end)) in PyCodec_SurrogatePassErrors()
1223 if (!(object = PyUnicodeDecodeError_GetObject(exc))) in PyCodec_SurrogatePassErrors()
1226 if (!(encode = PyUnicodeDecodeError_GetEncoding(exc))) { in PyCodec_SurrogatePassErrors()
1239 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_SurrogatePassErrors()
1275 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_SurrogatePassErrors()
1284 wrong_exception_type(exc); in PyCodec_SurrogatePassErrors()
1290 PyCodec_SurrogateEscapeErrors(PyObject *exc) in PyCodec_SurrogateEscapeErrors() argument
1299 if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeEncodeError)) { in PyCodec_SurrogateEscapeErrors()
1301 if (PyUnicodeEncodeError_GetStart(exc, &start)) in PyCodec_SurrogateEscapeErrors()
1303 if (PyUnicodeEncodeError_GetEnd(exc, &end)) in PyCodec_SurrogateEscapeErrors()
1305 if (!(object = PyUnicodeEncodeError_GetObject(exc))) in PyCodec_SurrogateEscapeErrors()
1318 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_SurrogateEscapeErrors()
1330 else if (PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeDecodeError)) { in PyCodec_SurrogateEscapeErrors()
1335 if (PyUnicodeDecodeError_GetStart(exc, &start)) in PyCodec_SurrogateEscapeErrors()
1337 if (PyUnicodeDecodeError_GetEnd(exc, &end)) in PyCodec_SurrogateEscapeErrors()
1339 if (!(object = PyUnicodeDecodeError_GetObject(exc))) in PyCodec_SurrogateEscapeErrors()
1352 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_SurrogateEscapeErrors()
1361 wrong_exception_type(exc); in PyCodec_SurrogateEscapeErrors()
1367 static PyObject *strict_errors(PyObject *self, PyObject *exc) in strict_errors() argument
1369 return PyCodec_StrictErrors(exc); in strict_errors()
1373 static PyObject *ignore_errors(PyObject *self, PyObject *exc) in ignore_errors() argument
1375 return PyCodec_IgnoreErrors(exc); in ignore_errors()
1379 static PyObject *replace_errors(PyObject *self, PyObject *exc) in replace_errors() argument
1381 return PyCodec_ReplaceErrors(exc); in replace_errors()
1385 static PyObject *xmlcharrefreplace_errors(PyObject *self, PyObject *exc) in xmlcharrefreplace_errors() argument
1387 return PyCodec_XMLCharRefReplaceErrors(exc); in xmlcharrefreplace_errors()
1391 static PyObject *backslashreplace_errors(PyObject *self, PyObject *exc) in backslashreplace_errors() argument
1393 return PyCodec_BackslashReplaceErrors(exc); in backslashreplace_errors()
1396 static PyObject *namereplace_errors(PyObject *self, PyObject *exc) in namereplace_errors() argument
1398 return PyCodec_NameReplaceErrors(exc); in namereplace_errors()
1401 static PyObject *surrogatepass_errors(PyObject *self, PyObject *exc) in surrogatepass_errors() argument
1403 return PyCodec_SurrogatePassErrors(exc); in surrogatepass_errors()
1406 static PyObject *surrogateescape_errors(PyObject *self, PyObject *exc) in surrogateescape_errors() argument
1408 return PyCodec_SurrogateEscapeErrors(exc); in surrogateescape_errors()