pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Oliver Jowett <oliver@opencloud.com>
Cc: NielsG <NielsG@aquafold.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Minor Feature Request
Date: Mon, 11 Apr 2005 00:25:27 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0504110006480.11110@leary.csoft.net> (raw)
In-Reply-To: <425317D7.4020509@opencloud.com>
References: <42530F4C.6060502@aquafold.com>
	<Pine.BSO.4.56.0504051735580.2530@leary.csoft.net>
	<425317D7.4020509@opencloud.com>



On Wed, 6 Apr 2005, Oliver Jowett wrote:

> Perhaps we should put accessors for the various message parts on
> PSQLException, but leave the SQLException message as it currently is.
> 

I've made ServerErrorMessage and its members available in the newly 
released 8.1dev-400.

int errorPosition = 0;
try {
	...
} catch (PSQLException e) {
	ServerErrorMessage m = e.getServerErrorMessage();
	if (m != null) {
		errorPosition = m.getPosition();
	}
}

Kris Jurka



view thread (8+ messages)

Message-ID: <Pine.BSO.4.56.0504110006480.11110@leary.csoft.net>
Permalink:  ../Pine.BSO.4.56.0504110006480.11110@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.56.0504110006480.11110@leary.csoft.net

 · 

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: books@ejurka.com, oliver@opencloud.com, NielsG@aquafold.com
  Subject: Re: Minor Feature Request
  In-Reply-To: <Pine.BSO.4.56.0504110006480.11110@leary.csoft.net>
  References: <42530F4C.6060502@aquafold.com> <Pine.BSO.4.56.0504051735580.2530@leary.csoft.net> <425317D7.4020509@opencloud.com> <Pine.BSO.4.56.0504110006480.11110@leary.csoft.net>

* 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