Re: Error Code

Lists: pgsql-jdbc
From: Isaías Cristiano Barroso <isaias(at)unimedjm(dot)com(dot)br>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Error Code
Date: 2003-01-16 19:31:36
Message-ID: 016b01c2bd95$e23b2960$0c6aa8c0@unimedjm.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

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


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
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


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
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)