X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id AC8D1DA09D for ; Tue, 4 Oct 2005 17:05:28 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 57633-10 for ; Tue, 4 Oct 2005 20:05:23 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.201]) by svr1.postgresql.org (Postfix) with ESMTP id 146C8DA0AF for ; Tue, 4 Oct 2005 17:05:23 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id i5so116855wra for ; Tue, 04 Oct 2005 13:05:25 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=rzFi9cuRYsdCVr/xmqKHtbpLD/Zdpimcfb4WrjR7m0pAyIDhqXL6sdMMv+fe5q3BhulBpl3YYdJZkcN/XZgt2AKTsjNfsyuJPSjqfiaKbPjFMdZwBtN7mIT4Tqs/7HUEwBGBVmlyamo+74CrQn9PcKTAiERre3w6mC2BbtsYZ1Q= Received: by 10.54.109.12 with SMTP id h12mr683412wrc; Tue, 04 Oct 2005 13:05:25 -0700 (PDT) Received: by 10.54.105.6 with HTTP; Tue, 4 Oct 2005 13:05:25 -0700 (PDT) Message-ID: <3fccaa690510041305q3c41116exa7c8ff4f44645978@mail.gmail.com> Date: Tue, 4 Oct 2005 14:05:25 -0600 From: Andres Olarte Reply-To: Andres Olarte To: pgsql-jdbc@postgresql.org Subject: Getting status on login failure MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.316 required=5 tests=[AWL=0.292, RCVD_BY_IP=0.024] X-Spam-Level: X-Archive-Number: 200510/12 X-Sequence-Number: 13943 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