Added doc for Error.cursor

This commit is contained in:
Daniele Varrazzo 2012-01-19 01:30:46 +00:00
parent db987250c8
commit 78895e6943

View File

@ -117,11 +117,6 @@ available through the following exceptions:
if not available. The `~psycopg2.errorcodes` module contains
symbolic constants representing PostgreSQL error codes.
.. extension::
The `~Error.pgerror` and `~Error.pgcode` attributes are
Psycopg extensions.
.. doctest::
:options: +NORMALIZE_WHITESPACE
@ -136,10 +131,14 @@ available through the following exceptions:
ERROR: relation "barf" does not exist
LINE 1: SELECT * FROM barf
^
.. attribute:: cursor
.. versionchanged:: 2.0.7 added `Error.pgerror` and
`Error.pgcode` attributes.
The cursor the exception was raised from; `None` if not applicable.
.. extension::
The `~Error.pgerror`, `~Error.pgcode`, and `~Error.cursor` attributes
are Psycopg extensions.
.. exception:: InterfaceError