summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-02-11 03:40:28 +0000
committerFederico Di Gregorio <fog@initd.org>2010-02-14 00:39:48 +0100
commit9a6c4c4c93c5def0fa808876d9f2aacebbe1ac2f (patch)
tree4a5c53e1ef1073c4901b978b07b73904d4e5d54f
parentc8010cfd47d693b2ad03316ae64c422e5d15aa9e (diff)
downloadpsycopg2-9a6c4c4c93c5def0fa808876d9f2aacebbe1ac2f.tar.gz
Fixed repetition in exceptions docs.
-rw-r--r--doc/module.rst15
1 files changed, 7 insertions, 8 deletions
diff --git a/doc/module.rst b/doc/module.rst
index e8bcffe..6fe5220 100644
--- a/doc/module.rst
+++ b/doc/module.rst
@@ -145,21 +145,20 @@ available through the following exceptions:
.. extension::
- The :mod:`psycopg2.extensions` module exports a few other exception that
- may be raised by Psycopg: currently
+ Psycopg may raise a few other, more specialized, exceptions: currently
:exc:`~psycopg2.extensions.QueryCanceledError` and
- :exc:`~psycopg2.extensions.TransactionRollbackError`. These exceptions are
- not exposed by the main :mod:`!psycopg2` module but can be imported by the
- :mod:`~psycopg2.extensions` module. All the additional exceptions are
- subclasses of standard |DBAPI| exceptions, so trapping them specifically
- is not required.
+ :exc:`~psycopg2.extensions.TransactionRollbackError` are defined. These
+ exceptions are not exposed by the main :mod:`!psycopg2` module but are
+ made available by the :mod:`~psycopg2.extensions` module. All the
+ additional exceptions are subclasses of standard |DBAPI| exceptions, so
+ trapping them specifically is not required.
This is the exception inheritance layout:
.. parsed-literal::
- |StandardError|_
+ |StandardError|
\|__ :exc:`Warning`
\|__ :exc:`Error`
\|__ :exc:`InterfaceError`