Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id C2CFC2E2DB9 for ; Thu, 15 Nov 2007 10:14:38 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 36031-01 for ; Thu, 15 Nov 2007 10:14:37 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by postgresql.org (Postfix) with ESMTP id E8A8C2E2B56 for ; Thu, 15 Nov 2007 10:14:37 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.1/8.14.1) with ESMTP id lAFEEV6K059082 for ; Thu, 15 Nov 2007 10:14:31 -0400 (AST) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.1/8.14.1/Submit) id lAFDsAKM051883 for pgsql-sql@postgresql.org; Thu, 15 Nov 2007 09:54:10 -0400 (AST) (envelope-from news) From: "Sabin Coanda" X-Newsgroups: pgsql.sql Subject: Re: trap for any exception Date: Thu, 15 Nov 2007 15:54:13 +0200 Organization: Hub.Org Networking Services Lines: 3 Message-ID: References: X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 To: pgsql-sql@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/77 X-Sequence-Number: 29605 That's ok, I found SQLSTATE and SQLERRM.