Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id C92D8632F34 for ; Wed, 3 Jun 2009 12:28:36 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 44716-04 for ; Wed, 3 Jun 2009 12:28:35 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from kerberos.fcon.no (165.84-49-232.nextgentel.com [84.49.232.165]) by mail.postgresql.org (Postfix) with ESMTP id 797DA632568 for ; Wed, 3 Jun 2009 12:28:35 -0300 (ADT) Received: from fcon.no (localhost [127.0.0.1]) by kerberos.fcon.no (Postfix) with ESMTP id 07319370A6 for ; Wed, 3 Jun 2009 17:28:33 +0200 (CEST) Received: from 89.8.146.200 (SquirrelMail authenticated user tfinneid) by fcon.no with HTTP; Wed, 3 Jun 2009 17:28:33 +0200 (CEST) Message-ID: <2855.89.8.146.200.1244042913.squirrel@fcon.no> Date: Wed, 3 Jun 2009 17:28:33 +0200 (CEST) Subject: jdbc excpetions in pg From: "Thomas Finneid" To: pgsql-jdbc@postgresql.org User-Agent: SquirrelMail/1.4.9a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.093 tagged_above=0 required=5 tests=AWL=-0.007, RDNS_DYNAMIC=0.1 X-Spam-Level: X-Archive-Number: 200906/14 X-Sequence-Number: 19678 Hi I was looking at the documentation for the pg jdbc driver and it seems to me that the driver throws SQLExceptions only, or mostly. I.e. the driver does not create any subclasses of the SQLException class. Is this correct? If so, what is the suggested method for classifying the errors to more detail than SQLException? I was hoping to make my code more robust by dealing with the errors more appropriately. regards thomas