ID EN
Built-in Exceptions

add_note

Python 3.11

Add the string note to the exception’s notes which appear in the standard traceback after the exception string. A TypeError is raised if note is not a string.

Syntax

PYTHON
add_note(note)

See Also

TypeError