Lines Matching refs:PyBaseExceptionObject
44 PyBaseExceptionObject *self; in BaseException_new()
46 self = (PyBaseExceptionObject *)type->tp_alloc(type, 0); in BaseException_new()
71 BaseException_init(PyBaseExceptionObject *self, PyObject *args, PyObject *kwds) in BaseException_init()
83 BaseException_clear(PyBaseExceptionObject *self) in BaseException_clear()
95 BaseException_dealloc(PyBaseExceptionObject *self) in BaseException_dealloc()
108 BaseException_traverse(PyBaseExceptionObject *self, visitproc visit, void *arg) in BaseException_traverse()
120 BaseException_str(PyBaseExceptionObject *self) in BaseException_str()
133 BaseException_repr(PyBaseExceptionObject *self) in BaseException_repr()
145 BaseException_reduce(PyBaseExceptionObject *self, PyObject *Py_UNUSED(ignored)) in BaseException_reduce()
196 static inline PyBaseExceptionObject*
200 return (PyBaseExceptionObject *)exc; in _PyBaseExceptionObject_cast()
256 BaseException_get_args(PyBaseExceptionObject *self, void *Py_UNUSED(ignored)) in BaseException_get_args()
266 BaseException_set_args(PyBaseExceptionObject *self, PyObject *val, void *Py_UNUSED(ignored)) in BaseException_set_args()
281 BaseException_get_tb(PyBaseExceptionObject *self, void *Py_UNUSED(ignored)) in BaseException_get_tb()
291 BaseException_set_tb(PyBaseExceptionObject *self, PyObject *tb, void *Py_UNUSED(ignored)) in BaseException_set_tb()
382 PyBaseExceptionObject *base_self = _PyBaseExceptionObject_cast(self); in PyException_GetTraceback()
406 PyBaseExceptionObject *base_self = _PyBaseExceptionObject_cast(self); in PyException_SetCause()
435 offsetof(PyBaseExceptionObject, suppress_context)},
443 sizeof(PyBaseExceptionObject), /*tp_basicsize*/
476 offsetof(PyBaseExceptionObject, dict), /* tp_dictoffset */
493 sizeof(PyBaseExceptionObject), \
499 0, 0, 0, offsetof(PyBaseExceptionObject, dict), \
575 if (BaseException_init((PyBaseExceptionObject *)self, args, kwds) == -1) in StopIteration_init()
591 return BaseException_clear((PyBaseExceptionObject *)self); in StopIteration_clear()
606 return BaseException_traverse((PyBaseExceptionObject *)self, visit, arg); in StopIteration_traverse()
638 if (BaseException_init((PyBaseExceptionObject *)self, args, kwds) == -1) in SystemExit_init()
658 return BaseException_clear((PyBaseExceptionObject *)self); in SystemExit_clear()
673 return BaseException_traverse((PyBaseExceptionObject *)self, visit, arg); in SystemExit_traverse()
836 if (BaseException_init((PyBaseExceptionObject *)self, args, kwds) == -1) { in BaseExceptionGroup_init()
847 return BaseException_clear((PyBaseExceptionObject *)self); in BaseExceptionGroup_clear()
864 return BaseException_traverse((PyBaseExceptionObject *)self, visit, arg); in BaseExceptionGroup_traverse()
1328 PyBaseExceptionObject *e1 = (PyBaseExceptionObject *)exc1; in is_same_exception_metadata()
1329 PyBaseExceptionObject *e2 = (PyBaseExceptionObject *)exc2; in is_same_exception_metadata()
1507 if (BaseException_init((PyBaseExceptionObject *)self, args, NULL) == -1) in ImportError_init()
1541 return BaseException_clear((PyBaseExceptionObject *)self); in ImportError_clear()
1558 return BaseException_traverse((PyBaseExceptionObject *)self, visit, arg); in ImportError_traverse()
1569 return BaseException_str((PyBaseExceptionObject *)self); in ImportError_str()
1576 PyObject *dict = ((PyBaseExceptionObject *)self)->dict; in ImportError_getstate()
1609 args = ((PyBaseExceptionObject *)self)->args; in ImportError_reduce()
1934 return BaseException_clear((PyBaseExceptionObject *)self); in OSError_clear()
1956 return BaseException_traverse((PyBaseExceptionObject *)self, visit, arg); in OSError_traverse()
2001 return BaseException_str((PyBaseExceptionObject *)self); in OSError_str()
2186 if (BaseException_init((PyBaseExceptionObject *)self, args, NULL) == -1) { in NameError_init()
2211 return BaseException_clear((PyBaseExceptionObject *)self); in NameError_clear()
2226 return BaseException_traverse((PyBaseExceptionObject *)self, visit, arg); in NameError_traverse()
2261 if (BaseException_init((PyBaseExceptionObject *)self, args, NULL) == -1) { in AttributeError_init()
2290 return BaseException_clear((PyBaseExceptionObject *)self); in AttributeError_clear()
2306 return BaseException_traverse((PyBaseExceptionObject *)self, visit, arg); in AttributeError_traverse()
2334 if (BaseException_init((PyBaseExceptionObject *)self, args, kwds) == -1) in SyntaxError_init()
2385 return BaseException_clear((PyBaseExceptionObject *)self); in SyntaxError_clear()
2407 return BaseException_traverse((PyBaseExceptionObject *)self, visit, arg); in SyntaxError_traverse()
2542 KeyError_str(PyBaseExceptionObject *self) in KeyError_str()
2835 return BaseException_clear((PyBaseExceptionObject *)self); in UnicodeError_clear()
2852 return BaseException_traverse((PyBaseExceptionObject *)self, visit, arg); in UnicodeError_traverse()
2879 if (BaseException_init((PyBaseExceptionObject *)self, args, kwds) == -1) in UnicodeEncodeError_init()
2977 if (BaseException_init((PyBaseExceptionObject *)self, args, kwds) == -1) in UnicodeDecodeError_init()
3092 if (BaseException_init((PyBaseExceptionObject *)self, args, kwds) == -1) in UnicodeTranslateError_init()
3241 PyBaseExceptionObject *self; in MemoryError_new()
3263 state->memerrors_freelist = (PyBaseExceptionObject *) self->dict; in MemoryError_new()
3272 MemoryError_dealloc(PyBaseExceptionObject *self) in MemoryError_dealloc()
3321 state->memerrors_freelist = (PyBaseExceptionObject *)state->memerrors_freelist->dict; in free_preallocated_memerrors()
3330 sizeof(PyBaseExceptionObject),
3336 0, 0, 0, offsetof(PyBaseExceptionObject, dict),
3821 instance_args = ((PyBaseExceptionObject *)val)->args; in _PyErr_TrySetFromCause()