From: Daniele Varrazzo Date: Sat, 5 Feb 2022 22:43:13 +0000 (+0100) Subject: Fix typo/improve errors docs X-Git-Tag: pool-3.1.1~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=792504b24f46c301457a5d46c398924013b27ffc;p=thirdparty%2Fpsycopg.git Fix typo/improve errors docs --- diff --git a/docs/api/errors.rst b/docs/api/errors.rst index 388d3870c..4c44a4110 100644 --- a/docs/api/errors.rst +++ b/docs/api/errors.rst @@ -46,7 +46,7 @@ These classes are exposed both by this module and the root `psycopg` module. The code of the error, if defined. This is a class attribute defined for all the - :ref:`sqlstate-exceptions` classed, `None` for the base classes. + :ref:`sqlstate-exceptions` classes, `!None` for the base classes. .. autoexception:: Warning() .. autoexception:: InterfaceError() @@ -70,8 +70,8 @@ Error diagnostics .. autoclass:: Diagnostic() - The object is returned by the `Error.diag` attribute and is passed to the - callback functions registered with + The object is available as the `~psycopg.Error`.\ `~psycopg.Error.diag` + attribute and is passed to the callback functions registered with `~psycopg.Connection.add_notice_handler()`. All the information available from the :pq:`PQresultErrorField()` function