Re: Error Code

From: Daniel Serodio <daniel(at)checkforte(dot)com(dot)br>
To: Isaías Cristiano Barroso <isaias(at)unimedjm(dot)com(dot)br>
Cc: PostgreSQL JDBC List <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Error Code
Date: 2003-01-16 20:14:32
Message-ID: 1042748072.9721.64.camel@kelly.ckf
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Not the driver's fault, the backend doesn't implement error codes. You
should customize the error messages based on the exception's
getMessage().

[]'s
Daniel Serodio

On Thu, 2003-01-16 at 17:31, Isaías Cristiano Barroso wrote:
> Hi All,
>
> Possible is get a error code when a SQLException occurr?
> I utilize getErrorCode(), but this don't work, always return zero.
> I need this to customize the error message for the users of my system.
>
> Driver JDBC : pg73jdbc3.jar
>
> Thanks
>
> Isaias
--
Daniel Serodio <daniel(at)checkforte(dot)com(dot)br>
CheckForte

In response to

  • Error Code at 2003-01-16 19:31:36 from Isaías Cristiano Barroso

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Campano, Troy 2003-01-16 20:19:42 Re: jdbc/redhat8.0/postgresql upgrade
Previous Message Isaías Cristiano Barroso 2003-01-16 19:57:32 Error Code