| 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: | Pine.BSO.4.56.0504110006480.11110@leary.csoft.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Kris Jurka | 2005-04-11 05:25:38 | Re: Version 8.0-310 and PreparedStatement.getParameterMetaData() |
| Previous Message | Oliver Jowett | 2005-04-11 04:22:29 | Re: implementing asynchronous notifications |