#10723: add missing builtin exceptions.

This commit is contained in:
Georg Brandl 2010-12-18 17:51:28 +00:00
parent 3044fa77a5
commit 0bdfbfa276
1 changed files with 18 additions and 0 deletions

View File

@ -63,6 +63,12 @@ The following exceptions are used mostly as base classes for other exceptions.
:exc:`FloatingPointError`. :exc:`FloatingPointError`.
.. exception:: BufferError
Raised when a :ref:`buffer <bufferobjects>` related operation cannot be
performed.
.. exception:: LookupError .. exception:: LookupError
The base class for the exceptions that are raised when a key or index used on The base class for the exceptions that are raised when a key or index used on
@ -257,6 +263,18 @@ The following exceptions are the exceptions that are usually raised.
of the exception instance returns only the message. of the exception instance returns only the message.
.. exception:: IndentationError
Base class for syntax errors related to incorrect indentation. This is a
subclass of :exc:`SyntaxError`.
.. exception:: TabError
Raised when indentation contains an inconsistent use of tabs and spaces.
This is a subclass of :exc:`IndentationError`.
.. exception:: SystemError .. exception:: SystemError
Raised when the interpreter finds an internal error, but the situation does not Raised when the interpreter finds an internal error, but the situation does not