exception ValueError Raised when a built-in operation or function receives an argument that has the right type but an inappropriate
exception AssertionError Raised when an assert statement fails.
exception OverflowError Raised when the result of an arithmetic operation is too large to be represented. This cannot occur
exception NotADirectoryError Raised when a directory operation (such as
exception InterruptedError Raised when a system call is interrupted by an incoming signal. Corresponds to errno
code The exit status or error message that is passed to the constructor. (Defaults to None.)
exception TimeoutError Raised when a system function timed out at the system level. Corresponds to errno ETIMEDOUT
with_traceback(tb) This method sets tb as the new traceback for the exception and returns the exception object. It
exception ResourceWarning Base class for warnings related to resource usage.
exception UnicodeError Raised when a Unicode-related encoding or decoding error occurs. It is a subclass of ValueError
Page 4 of 8