Re: Using \errverbose through JDBC - Mailing list pgsql-jdbc

From Thomas Kellerer
Subject Re: Using \errverbose through JDBC
Date
Msg-id o6t043$4at$1@blaine.gmane.org
Whole thread Raw
In response to Re: [JDBC] Using \errverbose through JDBC  (Vladimir Sitnikov <sitnikov.vladimir@gmail.com>)
List pgsql-jdbc
Vladimir Sitnikov schrieb am 01.02.2017 um 14:28:
> Thomas>This can currently only be used in psql using the \errverbose command or by changing the VERBOSITY variable.
>
> As far as I know, PSQLException (that is a base class of pgjdbc's SQLExceptions) always has relevant data avaliable
viagetServerErrorMessage. 
>
> Is it something that you want?
>
>
https://github.com/pgjdbc/pgjdbc/blob/8be516d47ece60b7aeba5a9474b5cac1d538a04a/pgjdbc/src/main/java/org/postgresql/util/PSQLException.java#L28

>
> Vladimir

Cool, this is what I was looking for.

Thanks

pgsql-jdbc by date:

Previous
From: Tom Lane
Date:
Subject: Re: [JDBC] Using \errverbose through JDBC
Next
From: Thomas Kellerer
Date:
Subject: Re: Using \errverbose through JDBC