Re: Using \errverbose through JDBC

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Using \errverbose through JDBC
Date: 2017-02-01 15:50:33
Message-ID: o6t043$4at$1@blaine.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 via getServerErrorMessage.
>
> 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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Thomas Kellerer 2017-02-01 15:51:35 Re: Using \errverbose through JDBC
Previous Message Tom Lane 2017-02-01 15:24:01 Re: Using \errverbose through JDBC