summaryrefslogtreecommitdiffstats
path: root/Doc/library/exceptions.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-12-18 17:51:28 (GMT)
committerGeorg Brandl <georg@python.org>2010-12-18 17:51:28 (GMT)
commit0bdfbfa2768e5c570deb330c419ba9950d006d82 (patch)
treecc99fb2a129df046396fac5d365ce0f7fdf94a97 /Doc/library/exceptions.rst
parent3044fa77a52bf3756ac2ba25baa1c1f23592ec99 (diff)
downloadcpython-0bdfbfa2768e5c570deb330c419ba9950d006d82.zip
cpython-0bdfbfa2768e5c570deb330c419ba9950d006d82.tar.gz
cpython-0bdfbfa2768e5c570deb330c419ba9950d006d82.tar.bz2
#10723: add missing builtin exceptions.
Diffstat (limited to 'Doc/library/exceptions.rst')
-rw-r--r--Doc/library/exceptions.rst18
1 files changed, 18 insertions, 0 deletions
diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst
index 70591d1..bf7be21 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 <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