PyDocs

Nav

Python Runtime Services

BaseException

builtins

exception
Common base class for all exceptions
Members of BaseException

_

__cause__
When raising a new exception while another exception is already being handled, the new exception’s __context__ attribute is automatically set to the handled exception.
__context__
When raising a new exception while another exception is already being handled, the new exception’s __context__ attribute is automatically set to the handled exception.
__notes__
A list of the notes of this exception, which were added with add_note().
__suppress_context__
When raising a new exception while another exception is already being handled, the new exception’s __context__ attribute is automatically set to the handled exception.
__traceback__
A writable field that holds the traceback object associated with this exception.

a

add_note
Add a note to the exception
args
The tuple of arguments given to the exception constructor.

w

with_traceback
Set self.__traceback__ to tb and return self.
0 Examples
No examples for builtins/BaseException.
See Also
No see-alsos for builtins/BaseException
0 Notes
No notes for BaseException