]> granicus.if.org Git - python/commitdiff
#10723: add missing builtin exceptions.
authorGeorg Brandl <georg@python.org>
Sat, 18 Dec 2010 17:51:28 +0000 (17:51 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 18 Dec 2010 17:51:28 +0000 (17:51 +0000)
Doc/library/exceptions.rst

index 70591d15f2fc3062d6d8b77c12149b5405773d92..bf7be21f68bd4feed4618f0035386e89ecfa519f 100644 (file)
@@ -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