UnicodeError.encoding
  • References/Python/Python/Built-in Exceptions

encoding The name of the encoding that raised the error.

2025-01-10 15:47:30
UnboundLocalError
  • References/Python/Python/Built-in Exceptions

exception UnboundLocalError Raised when a reference is made to a local variable in a function or method, but no value has been

2025-01-10 15:47:30
StopIteration
  • References/Python/Python/Built-in Exceptions

exception StopIteration Raised by built-in function

2025-01-10 15:47:30
UnicodeError.start
  • References/Python/Python/Built-in Exceptions

start The first index of invalid data in

2025-01-10 15:47:30
FileNotFoundError
  • References/Python/Python/Built-in Exceptions

exception FileNotFoundError Raised when a file or directory is requested but doesn’t exist. Corresponds to errno

2025-01-10 15:47:30
BaseException.args
  • References/Python/Python/Built-in Exceptions

args The tuple of arguments given to the exception constructor. Some built-in exceptions (like OSError) expect

2025-01-10 15:47:30
BaseException
  • References/Python/Python/Built-in Exceptions

exception BaseException The base class for all built-in exceptions. It is not meant to be directly inherited by user-defined

2025-01-10 15:47:30
OSError.filename
  • References/Python/Python/Built-in Exceptions

filename filename2 For exceptions that involve a file system path (such as

2025-01-10 15:47:30
SystemError
  • References/Python/Python/Built-in Exceptions

exception SystemError Raised when the interpreter finds an internal error, but the situation does not look so serious to cause

2025-01-10 15:47:30
IndexError
  • References/Python/Python/Built-in Exceptions

exception IndexError Raised when a sequence subscript is out of range. (Slice indices are silently truncated to fall in the

2025-01-10 15:47:30