Skip site navigation (1) Skip section navigation (2)

Re: Minor Feature Request

From: Kris Jurka <books(at)ejurka(dot)com>
To: Oliver Jowett <oliver(at)opencloud(dot)com>
Cc: NielsG <NielsG(at)aquafold(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Minor Feature Request
Date: 2005-04-11 05:25:27
Message-ID: (view raw or whole thread)
Lists: pgsql-jdbc

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

In response to

pgsql-jdbc by date

Next:From: Kris JurkaDate: 2005-04-11 05:25:38
Subject: Re: Version 8.0-310 and PreparedStatement.getParameterMetaData()
Previous:From: Oliver JowettDate: 2005-04-11 04:22:29
Subject: Re: implementing asynchronous notifications

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group