Module exceptions
[hide private]
[frames] | no frames]

Module exceptions

Python's standard exception class hierarchy.

Exceptions found here are defined both in the exceptions module and the built-in namespace. It is recommended that user-defined exceptions inherit from Exception. See the documentation for the exception inheritance hierarchy.

Classes [hide private]
  ArithmeticError
Base class for arithmetic errors.
  AssertionError
Assertion failed.
  AttributeError
Attribute not found.
  BaseException
Common base class for all exceptions
  DeprecationWarning
Base class for warnings about deprecated features.
  EOFError
Read beyond end of file.
  EnvironmentError
Base class for I/O related errors.
  Exception
Common base class for all non-exit exceptions.
  FloatingPointError
Floating point operation failed.
  FutureWarning
Base class for warnings about constructs that will change semantically in the future.
  GeneratorExit
Request that a generator exit.
  IOError
I/O operation failed.
  ImportError
Import can't find module, or can't find name in module.
  ImportWarning
Base class for warnings about probable mistakes in module imports
  IndentationError
Improper indentation.
  IndexError
Sequence index out of range.
  KeyError
Mapping key not found.
  KeyboardInterrupt
Program interrupted by user.
  LookupError
Base class for lookup errors.
  MemoryError
Out of memory.
  NameError
Name not found globally.
  NotImplementedError
Method or function hasn't been implemented yet.
  OSError
OS system call failed.
  OverflowError
Result too large to be represented.
  PendingDeprecationWarning
Base class for warnings about features which will be deprecated in the future.
  ReferenceError
Weak ref proxy used after referent went away.
  RuntimeError
Unspecified run-time error.
  RuntimeWarning
Base class for warnings about dubious runtime behavior.
  StandardError
Base class for all standard Python exceptions that do not represent interpreter exiting.
  StopIteration
Signal the end from iterator.next().
  SyntaxError
Invalid syntax.
  SyntaxWarning
Base class for warnings about dubious syntax.
  SystemError
Internal error in the Python interpreter.
  SystemExit
Request to exit from the interpreter.
  TabError
Improper mixture of spaces and tabs.
  TypeError
Inappropriate argument type.
  UnboundLocalError
Local name referenced but not bound to a value.
  UnicodeDecodeError
Unicode decoding error.
  UnicodeEncodeError
Unicode encoding error.
  UnicodeError
Unicode related error.
  UnicodeTranslateError
Unicode translation error.
  UnicodeWarning
Base class for warnings about Unicode related problems, mostly related to conversion problems.
  UserWarning
Base class for warnings generated by user code.
  ValueError
Inappropriate argument value (of correct type).
  Warning
Base class for warning categories.
  ZeroDivisionError
Second argument to a division or modulo operation was zero.