Re: Error Code

From: "Tom Innes" <tinnes(at)inforamp(dot)net>
To: "PostgreSQL JDBC List" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Error Code
Date: 2003-01-16 20:41:59
Message-ID: PCEPKHKFEJKBJGMFLAPKMEMCCFAA.tinnes@inforamp.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Does anybody know if Error Codes are planned for 7.4.

Tom

-----Original Message-----
From: pgsql-jdbc-owner(at)postgresql(dot)org
[mailto:pgsql-jdbc-owner(at)postgresql(dot)org]On Behalf Of Daniel Serodio
Sent: Thursday, January 16, 2003 3:15 PM
To: Isaías Cristiano Barroso
Cc: PostgreSQL JDBC List
Subject: Re: [JDBC] Error Code

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

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Patric Bechtel 2003-01-16 21:41:56 Re: Error Code
Previous Message Campano, Troy 2003-01-16 20:19:42 Re: jdbc/redhat8.0/postgresql upgrade