Lines Matching refs:exc_value
117 PyObject *exc_value; in _PyErr_SetObject() local
130 exc_value = _PyErr_GetTopmostException(tstate)->exc_value; in _PyErr_SetObject()
131 if (exc_value != NULL && exc_value != Py_None) { in _PyErr_SetObject()
133 Py_INCREF(exc_value); in _PyErr_SetObject()
145 Py_DECREF(exc_value); in _PyErr_SetObject()
158 if (exc_value != value) { in _PyErr_SetObject()
159 PyObject *o = exc_value, *context; in _PyErr_SetObject()
180 PyException_SetContext(value, exc_value); in _PyErr_SetObject()
183 Py_DECREF(exc_value); in _PyErr_SetObject()
473 *p_value = exc_info->exc_value; in _PyErr_GetExcInfo()
496 oldvalue = tstate->exc_info->exc_value; in PyErr_SetExcInfo()
500 tstate->exc_info->exc_value = p_value; in PyErr_SetExcInfo()
585 val2 = exc_info->exc_value; in _PyErr_ChainStackItem()
1236 PyObject *exc_value, PyObject *exc_tb, in make_unraisable_hook_args() argument
1256 ADD_ITEM(exc_value); in make_unraisable_hook_args()
1278 PyObject *exc_value, PyObject *exc_tb, in write_unraisable_exc_file() argument
1368 if (exc_value && exc_value != Py_None) { in write_unraisable_exc_file()
1372 if (PyFile_WriteObject(exc_value, file, Py_PRINT_RAW) < 0) { in write_unraisable_exc_file()
1397 PyObject *exc_value, PyObject *exc_tb, PyObject *err_msg, in write_unraisable_exc() argument
1408 int res = write_unraisable_exc_file(tstate, exc_type, exc_value, exc_tb, in write_unraisable_exc()
1430 PyObject *exc_value = PyStructSequence_GET_ITEM(args, 1); in _PyErr_WriteUnraisableDefaultHook() local
1435 if (write_unraisable_exc(tstate, exc_type, exc_value, exc_tb, err_msg, obj) < 0) { in _PyErr_WriteUnraisableDefaultHook()
1460 PyObject *exc_type, *exc_value, *exc_tb; in _PyErr_WriteUnraisableMsg() local
1461 _PyErr_Fetch(tstate, &exc_type, &exc_value, &exc_tb); in _PyErr_WriteUnraisableMsg()
1480 _PyErr_NormalizeException(tstate, &exc_type, &exc_value, &exc_tb); in _PyErr_WriteUnraisableMsg()
1483 if (PyException_SetTraceback(exc_value, exc_tb) < 0) { in _PyErr_WriteUnraisableMsg()
1496 tstate, exc_type, exc_value, exc_tb, err_msg, obj); in _PyErr_WriteUnraisableMsg()
1538 Py_XDECREF(exc_value); in _PyErr_WriteUnraisableMsg()
1540 _PyErr_Fetch(tstate, &exc_type, &exc_value, &exc_tb); in _PyErr_WriteUnraisableMsg()
1544 (void)write_unraisable_exc(tstate, exc_type, exc_value, exc_tb, in _PyErr_WriteUnraisableMsg()
1549 Py_XDECREF(exc_value); in _PyErr_WriteUnraisableMsg()