From: Georg Brandl Date: Sat, 18 Dec 2010 17:51:28 +0000 (+0000) Subject: #10723: add missing builtin exceptions. X-Git-Tag: v3.2b2~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0bdfbfa2768e5c570deb330c419ba9950d006d82;p=thirdparty%2FPython%2Fcpython.git #10723: add missing builtin exceptions. --- diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst index 70591d15f2fc..bf7be21f68bd 100644 --- a/Doc/library/exceptions.rst +++ b/Doc/library/exceptions.rst @@ -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 ` 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