Обсуждение: Error Code

Поиск
Список
Период
Сортировка

Error Code

От
Isaías Cristiano Barroso
Дата:
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

Re: Error Code

От
Daniel Serodio
Дата:
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@checkforte.com.br>
CheckForte


Re: Error Code

От
"Tom Innes"
Дата:
Does anybody know if Error Codes are planned for 7.4.

Tom

-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.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@checkforte.com.br>
CheckForte


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