ID EN
Built-in Exceptions

args

Python 3.11

The tuple of arguments given to the exception constructor. Some built-in exceptions (like OSError) expect a certain number of arguments and assign a special meaning to the elements of this tuple, while others are usually called only with a single string giving an error message.

Syntax

PYTHON
args

See Also

OSError