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