pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: olarte.andres@gmail.com
To: pgsql-jdbc@postgresql.org
Subject: Re: Getting status on login failure
Date: Tue, 04 Oct 2005 15:25:05 -0500
Message-ID: <s3429edb.053@gwmta.wicourts.gov> (raw)

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




view thread (2+ messages)

Message-ID: <s3429edb.053@gwmta.wicourts.gov>
Permalink:  ../s3429edb.053@gwmta.wicourts.gov/
Also on:    postgresql.org/message-id/s3429edb.053@gwmta.wicourts.gov

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, olarte.andres@gmail.com
  Subject: Re: Getting status on login failure
  In-Reply-To: <s3429edb.053@gwmta.wicourts.gov>
  References: <s3429edb.053@gwmta.wicourts.gov>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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