Comment 2 for bug 855299

On Wed, Sep 21, 2011 at 9:10 PM, James Henstridge
<email address hidden> wrote:
> Note that there is no pgcode attribute for disconnection errors: you
> only get those for errors reported from the database.  By their nature,
> disconnection errors are reported when the client can't communicate with
> the database.

From the linked page:
08000 CONNECTION EXCEPTION connection_exception
08003 CONNECTION DOES NOT EXIST connection_does_not_exist
08006 CONNECTION FAILURE connection_failure
08001 SQLCLIENT UNABLE TO ESTABLISH
SQLCONNECTION sqlclient_unable_to_establish_sqlconnection

Seem relevant.

_Rob