Lines Matching refs:exceptionObject
1462 … Py_ssize_t *endinpos, PyObject **exceptionObject, const char **inptr, in unicode_decode_call_errorhandler() argument
1482 if (*exceptionObject == NULL) { in unicode_decode_call_errorhandler()
1483 *exceptionObject = PyUnicodeDecodeError_Create( in unicode_decode_call_errorhandler()
1485 if (*exceptionObject == NULL) in unicode_decode_call_errorhandler()
1489 if (PyUnicodeDecodeError_SetStart(*exceptionObject, *startinpos)) in unicode_decode_call_errorhandler()
1491 if (PyUnicodeDecodeError_SetEnd(*exceptionObject, *endinpos)) in unicode_decode_call_errorhandler()
1493 if (PyUnicodeDecodeError_SetReason(*exceptionObject, reason)) in unicode_decode_call_errorhandler()
1497 restuple = PyObject_CallFunctionObjArgs(*errorHandler, *exceptionObject, NULL); in unicode_decode_call_errorhandler()
3526 static void make_encode_exception(PyObject **exceptionObject, in make_encode_exception() argument
3532 if (*exceptionObject == NULL) { in make_encode_exception()
3533 *exceptionObject = PyUnicodeEncodeError_Create( in make_encode_exception()
3537 if (PyUnicodeEncodeError_SetStart(*exceptionObject, startpos)) in make_encode_exception()
3539 if (PyUnicodeEncodeError_SetEnd(*exceptionObject, endpos)) in make_encode_exception()
3541 if (PyUnicodeEncodeError_SetReason(*exceptionObject, reason)) in make_encode_exception()
3545 Py_CLEAR(*exceptionObject); in make_encode_exception()
3550 static void raise_encode_exception(PyObject **exceptionObject, in raise_encode_exception() argument
3556 make_encode_exception(exceptionObject, in raise_encode_exception()
3558 if (*exceptionObject != NULL) in raise_encode_exception()
3559 PyCodec_StrictErrors(*exceptionObject); in raise_encode_exception()
3569 … const Py_UNICODE *unicode, Py_ssize_t size, PyObject **exceptionObject, in unicode_encode_call_errorhandler() argument
3584 make_encode_exception(exceptionObject, in unicode_encode_call_errorhandler()
3586 if (*exceptionObject == NULL) in unicode_encode_call_errorhandler()
3590 *errorHandler, *exceptionObject, NULL); in unicode_encode_call_errorhandler()
4648 PyObject **exceptionObject, in charmap_encoding_error() argument
4701 … raise_encode_exception(exceptionObject, encoding, p, size, collstartpos, collendpos, reason); in charmap_encoding_error()
4710 … raise_encode_exception(exceptionObject, encoding, p, size, collstartpos, collendpos, reason); in charmap_encoding_error()
4738 … raise_encode_exception(exceptionObject, encoding, p, size, collstartpos, collendpos, reason); in charmap_encoding_error()
4747 encoding, reason, p, size, exceptionObject, in charmap_encoding_error()
4760 … raise_encode_exception(exceptionObject, encoding, p, size, collstartpos, collendpos, reason); in charmap_encoding_error()
4848 static void make_translate_exception(PyObject **exceptionObject, in make_translate_exception() argument
4853 if (*exceptionObject == NULL) { in make_translate_exception()
4854 *exceptionObject = PyUnicodeTranslateError_Create( in make_translate_exception()
4858 if (PyUnicodeTranslateError_SetStart(*exceptionObject, startpos)) in make_translate_exception()
4860 if (PyUnicodeTranslateError_SetEnd(*exceptionObject, endpos)) in make_translate_exception()
4862 if (PyUnicodeTranslateError_SetReason(*exceptionObject, reason)) in make_translate_exception()
4866 Py_CLEAR(*exceptionObject); in make_translate_exception()
4871 static void raise_translate_exception(PyObject **exceptionObject, in raise_translate_exception() argument
4876 make_translate_exception(exceptionObject, in raise_translate_exception()
4878 if (*exceptionObject != NULL) in raise_translate_exception()
4879 PyCodec_StrictErrors(*exceptionObject); in raise_translate_exception()
4889 … const Py_UNICODE *unicode, Py_ssize_t size, PyObject **exceptionObject, in unicode_translate_call_errorhandler() argument
4905 make_translate_exception(exceptionObject, in unicode_translate_call_errorhandler()
4907 if (*exceptionObject == NULL) in unicode_translate_call_errorhandler()
4911 *errorHandler, *exceptionObject, NULL); in unicode_translate_call_errorhandler()