Lines Matching refs:exceptionObject
353 PyObject *unicode, PyObject **exceptionObject,
357 raise_encode_exception(PyObject **exceptionObject,
4342 make_decode_exception(PyObject **exceptionObject,
4348 if (*exceptionObject == NULL) {
4349 *exceptionObject = PyUnicodeDecodeError_Create(
4353 if (PyUnicodeDecodeError_SetStart(*exceptionObject, startpos))
4355 if (PyUnicodeDecodeError_SetEnd(*exceptionObject, endpos))
4357 if (PyUnicodeDecodeError_SetReason(*exceptionObject, reason))
4363 Py_CLEAR(*exceptionObject);
4394 Py_ssize_t *endinpos, PyObject **exceptionObject, const char **inptr,
4414 make_decode_exception(exceptionObject,
4419 if (*exceptionObject == NULL)
4422 restuple = PyObject_CallOneArg(*errorHandler, *exceptionObject);
4434 inputobj = PyUnicodeDecodeError_GetObject(*exceptionObject);
4507 Py_ssize_t *endinpos, PyObject **exceptionObject, const char **inptr,
4528 make_decode_exception(exceptionObject,
4533 if (*exceptionObject == NULL)
4536 restuple = PyObject_CallOneArg(*errorHandler, *exceptionObject);
4548 inputobj = PyUnicodeDecodeError_GetObject(*exceptionObject);
6947 make_encode_exception(PyObject **exceptionObject,
6953 if (*exceptionObject == NULL) {
6954 *exceptionObject = PyObject_CallFunction(
6959 if (PyUnicodeEncodeError_SetStart(*exceptionObject, startpos))
6961 if (PyUnicodeEncodeError_SetEnd(*exceptionObject, endpos))
6963 if (PyUnicodeEncodeError_SetReason(*exceptionObject, reason))
6967 Py_CLEAR(*exceptionObject);
6973 raise_encode_exception(PyObject **exceptionObject,
6979 make_encode_exception(exceptionObject,
6981 if (*exceptionObject != NULL)
6982 PyCodec_StrictErrors(*exceptionObject);
6993 PyObject *unicode, PyObject **exceptionObject,
7012 make_encode_exception(exceptionObject,
7014 if (*exceptionObject == NULL)
7017 restuple = PyObject_CallOneArg(*errorHandler, *exceptionObject);
8672 PyObject **exceptionObject,
8725 raise_encode_exception(exceptionObject, encoding, unicode, collstartpos, collendpos, reason);
8735 raise_encode_exception(exceptionObject, encoding, unicode, collstartpos, collendpos, reason);
8755 raise_encode_exception(exceptionObject, encoding, unicode, collstartpos, collendpos, reason);
8765 encoding, reason, unicode, exceptionObject,
8805 raise_encode_exception(exceptionObject, encoding, unicode, collstartpos, collendpos, reason);
8899 make_translate_exception(PyObject **exceptionObject,
8904 if (*exceptionObject == NULL) {
8905 *exceptionObject = _PyUnicodeTranslateError_Create(
8909 if (PyUnicodeTranslateError_SetStart(*exceptionObject, startpos))
8911 if (PyUnicodeTranslateError_SetEnd(*exceptionObject, endpos))
8913 if (PyUnicodeTranslateError_SetReason(*exceptionObject, reason))
8917 Py_CLEAR(*exceptionObject);
8929 PyObject *unicode, PyObject **exceptionObject,
8945 make_translate_exception(exceptionObject,
8947 if (*exceptionObject == NULL)
8950 restuple = PyObject_CallOneArg(*errorHandler, *exceptionObject);