args The tuple of arguments given to the exception constructor. Some built-in exceptions (like OSError) expect
exception BaseException The base class for all built-in exceptions. It is not meant to be directly inherited by user-defined
object The object the codec was attempting to encode or decode.
filename filename2 For exceptions that involve a file system path (such as
exception StopIteration Raised by built-in function
exception FileNotFoundError Raised when a file or directory is requested but doesn’t exist. Corresponds to errno
start The first index of invalid data in
encoding The name of the encoding that raised the error.
exception AssertionError Raised when an assert statement fails.
code The exit status or error message that is passed to the constructor. (Defaults to None.)
Page 3 of 8