Search notes:

Python: statement raise

raise XYZ('A bad thing happened')
raise XYZ('A bad thing happened') from None
raise XYZ('A bad thing happened') from original_error

See also

exception handling
The __cause__ dunder.
statements

Index