pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Getting status on login failure
2+ messages / 2 participants
[nested] [flat]

* Getting status on login failure
@ 2005-10-04 20:05 Andres Olarte <olarte.andres@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Andres Olarte @ 2005-10-04 20:05 UTC (permalink / raw)
  To: pgsql-jdbc

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Getting status on login failure
@ 2005-10-04 20:25 Kevin Grittner <Kevin.Grittner@wicourts.gov>
  0 siblings, 0 replies; 2+ messages in thread

From: Kevin Grittner @ 2005-10-04 20:25 UTC (permalink / raw)
  To: olarte.andres@gmail.com; pgsql-jdbc

Have you tried getSQLState() ?

>>> Andres Olarte <olarte.andres@gmail.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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2005-10-04 20:25 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-10-04 20:05 Getting status on login failure Andres Olarte <olarte.andres@gmail.com>
2005-10-04 20:25 Re: Getting status on login failure Kevin Grittner <Kevin.Grittner@wicourts.gov>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox