Re: Getting status on login failure

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <olarte(dot)andres(at)gmail(dot)com>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Getting status on login failure
Date: 2005-10-04 20:25:05
Message-ID: s3429edb.053@gwmta.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Have you tried getSQLState() ?

>>> Andres Olarte <olarte(dot)andres(at)gmail(dot)com> 10/04/05 3:05 PM >>>
Is it possible to get an status code on login failure? The exception
does return some useful info, but if it's possible to get an error
code, It'll be easier to show some userfriendly message to the user
(in spanish, which is another issue). The code of the exception
always reports 0.

Best Regards,

Andres

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kevin Grittner 2005-10-04 20:37:07 Re: Selecting on non ASCII varchars
Previous Message Jeremy LaCivita 2005-10-04 20:16:45 Re: Selecting on non ASCII varchars