SystemExit.code
  • References/Python/Python/Built-in Exceptions

code The exit status or error message that is passed to the constructor. (Defaults to None.)

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

exception ReferenceError This exception is raised when a weak reference proxy, created by the

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

with_traceback(tb) This method sets tb as the new traceback for the exception and returns the exception object. It

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

exception NotADirectoryError Raised when a directory operation (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
OSError.winerror
  • References/Python/Python/Built-in Exceptions

winerror Under Windows, this gives you the native Windows error code. The errno attribute is then an approximate

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

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

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

exception UnicodeTranslateError Raised when a Unicode-related error occurs during translating. It is a subclass of UnicodeError

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

exception Exception All built-in, non-system-exiting exceptions are derived from this class. All user-defined exceptions should

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

exception ChildProcessError Raised when an operation on a child process failed. Corresponds to errno ECHILD

2025-01-10 15:47:30