Commit 0bdfbfa2 authored by Georg Brandl's avatar Georg Brandl

#10723: add missing builtin exceptions.

parent 3044fa77
...@@ -63,6 +63,12 @@ The following exceptions are used mostly as base classes for other exceptions. ...@@ -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. ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment