pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: Using \errverbose through JDBC
Date: Wed, 1 Feb 2017 16:50:33 +0100
Message-ID: <o6t043$4at$1@blaine.gmane.org> (raw)
In-Reply-To: <CAB=Je-F1dVx9ZpbTAqyPwxxuaNT0PfRbPK8QSo8LKfZ_-guBuA@mail.gmail.com>
References: <o6sn6c$280$1@blaine.gmane.org>
	<CAB=Je-F1dVx9ZpbTAqyPwxxuaNT0PfRbPK8QSo8LKfZ_-guBuA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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/... 
> 
> Vladimir

Cool, this is what I was looking for. 

Thanks



-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (9+ messages)  latest in thread

Message-ID: <o6t043$4at$1@blaine.gmane.org>
Permalink:  ../o6t043$4at$1@blaine.gmane.org/
Also on:    postgresql.org/message-id/o6t043$4at$1@blaine.gmane.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: spam_eater@gmx.net
  Subject: Re: Using \errverbose through JDBC
  In-Reply-To: <o6t043$4at$1@blaine.gmane.org>
  References: <o6sn6c$280$1@blaine.gmane.org> <CAB=Je-F1dVx9ZpbTAqyPwxxuaNT0PfRbPK8QSo8LKfZ_-guBuA@mail.gmail.com> <o6t043$4at$1@blaine.gmane.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox