diff options
author | Georg Brandl <georg@python.org> | 2010-12-18 17:51:28 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-12-18 17:51:28 (GMT) |
commit | 0bdfbfa2768e5c570deb330c419ba9950d006d82 (patch) | |
tree | cc99fb2a129df046396fac5d365ce0f7fdf94a97 /Doc/library/exceptions.rst | |
parent | 3044fa77a52bf3756ac2ba25baa1c1f23592ec99 (diff) | |
download | cpython-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.rst | 18 |
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 |