Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0bdfbfa

Browse files
committed
#10723: add missing builtin exceptions.
1 parent 3044fa7 commit 0bdfbfa

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Doc/library/exceptions.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ The following exceptions are used mostly as base classes for other exceptions.
6363
:exc:`FloatingPointError`.
6464

6565

66+
.. exception:: BufferError
67+
68+
Raised when a :ref:`buffer <bufferobjects>` related operation cannot be
69+
performed.
70+
71+
6672
.. exception:: LookupError
6773

6874
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.
257263
of the exception instance returns only the message.
258264

259265

266+
.. exception:: IndentationError
267+
268+
Base class for syntax errors related to incorrect indentation. This is a
269+
subclass of :exc:`SyntaxError`.
270+
271+
272+
.. exception:: TabError
273+
274+
Raised when indentation contains an inconsistent use of tabs and spaces.
275+
This is a subclass of :exc:`IndentationError`.
276+
277+
260278
.. exception:: SystemError
261279

262280
Raised when the interpreter finds an internal error, but the situation does not

0 commit comments

Comments
 (0)