From: | Rene Pijlman <rpijlman(at)wanadoo(dot)nl> |
---|---|
To: | "Thomas O'Dowd" <tom(at)nooper(dot)com> |
Cc: | Joseph Shraibman <jks(at)selectacast(dot)net>, pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: NullPointerException on next() |
Date: | 2001-08-11 08:05:55 |
Message-ID: | e2p9ntcuphaa6s6polr4ugj7vb5rkd2hra@4ax.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Rene Pijlman | 2001-08-12 08:49:36 | Re: [JDBC] JDBC pg_description update needed for CVS tip |
Previous Message | Rene Pijlman | 2001-08-11 07:40:09 | Re: How to read PG Circle and Point types from JDBC? |