Re: NullPointerException on next() - Mailing list pgsql-jdbc

From Rene Pijlman
Subject Re: NullPointerException on next()
Date
Msg-id e2p9ntcuphaa6s6polr4ugj7vb5rkd2hra@4ax.com
Whole thread Raw
In response to Re: NullPointerException on next()  ("Thomas O'Dowd" <tom@nooper.com>)
List pgsql-jdbc
On Sat, 11 Aug 2001 11:40:29 +0900, you wrote:
>I think you're right about the exception that's being thrown,
>it shouldn't be the NullPointerException.

I've put it on the todo list:
http://lab.applinet.nl/postgresql-jdbc/ ("ResultSet").

It should throw a java.sql.SQLException, however, instead of a
java.lang.IllegalStateException. See the JDBC book
(http://java.sun.com/docs/books/jdbc/) section A.4: "There are
cases where a JavaRunTimeException and an SQLException might
overlap. ... In such cases, it is recommended that the
SQLException be thrown because that gives JDBC more consistent
control over errors."

Regards,
René Pijlman

pgsql-jdbc by date:

Previous
From: Rene Pijlman
Date:
Subject: Re: How to read PG Circle and Point types from JDBC?
Next
From: Rene Pijlman
Date:
Subject: Re: JDBC pg_description update needed for CVS tip