mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-23 01:16:34 +03:00
Fixed repetition in exceptions docs.
This commit is contained in:
parent
c8010cfd47
commit
9a6c4c4c93
|
@ -145,21 +145,20 @@ available through the following exceptions:
|
||||||
|
|
||||||
.. extension::
|
.. extension::
|
||||||
|
|
||||||
The :mod:`psycopg2.extensions` module exports a few other exception that
|
Psycopg may raise a few other, more specialized, exceptions: currently
|
||||||
may be raised by Psycopg: currently
|
|
||||||
:exc:`~psycopg2.extensions.QueryCanceledError` and
|
:exc:`~psycopg2.extensions.QueryCanceledError` and
|
||||||
:exc:`~psycopg2.extensions.TransactionRollbackError`. These exceptions are
|
:exc:`~psycopg2.extensions.TransactionRollbackError` are defined. These
|
||||||
not exposed by the main :mod:`!psycopg2` module but can be imported by the
|
exceptions are not exposed by the main :mod:`!psycopg2` module but are
|
||||||
:mod:`~psycopg2.extensions` module. All the additional exceptions are
|
made available by the :mod:`~psycopg2.extensions` module. All the
|
||||||
subclasses of standard |DBAPI| exceptions, so trapping them specifically
|
additional exceptions are subclasses of standard |DBAPI| exceptions, so
|
||||||
is not required.
|
trapping them specifically is not required.
|
||||||
|
|
||||||
|
|
||||||
This is the exception inheritance layout:
|
This is the exception inheritance layout:
|
||||||
|
|
||||||
.. parsed-literal::
|
.. parsed-literal::
|
||||||
|
|
||||||
|StandardError|_
|
|StandardError|
|
||||||
\|__ :exc:`Warning`
|
\|__ :exc:`Warning`
|
||||||
\|__ :exc:`Error`
|
\|__ :exc:`Error`
|
||||||
\|__ :exc:`InterfaceError`
|
\|__ :exc:`InterfaceError`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user