mirror of
https://github.com/python/cpython.git
synced 2026-01-05 23:12:38 +00:00
#10723: add missing builtin exceptions.
This commit is contained in:
parent
3044fa77a5
commit
0bdfbfa276
1 changed files with 18 additions and 0 deletions
|
|
@ -63,6 +63,12 @@ The following exceptions are used mostly as base classes for other exceptions.
|
|||
:exc:`FloatingPointError`.
|
||||
|
||||
|
||||
.. exception:: BufferError
|
||||
|
||||
Raised when a :ref:`buffer <bufferobjects>` related operation cannot be
|
||||
performed.
|
||||
|
||||
|
||||
.. exception:: LookupError
|
||||
|
||||
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.
|
||||
|
||||
|
||||
.. 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
|
||||
|
||||
Raised when the interpreter finds an internal error, but the situation does not
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue