X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E31CD8B9FE1 for ; Thu, 10 Feb 2005 17:47:40 +0000 (GMT) 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 83337-10 for ; Thu, 10 Feb 2005 17:47:33 +0000 (GMT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by svr1.postgresql.org (Postfix) with ESMTP id 152EB8B9EF7 for ; Thu, 10 Feb 2005 17:47:33 +0000 (GMT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j1AHlWWd014682 for ; Thu, 10 Feb 2005 12:47:32 -0500 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j1AHlWO11073 for ; Thu, 10 Feb 2005 12:47:32 -0500 Received: from el-vadimo.boston.redhat.com (el-vadimo.boston.redhat.com [172.16.80.100]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id j1AHlVP1015250 for ; Thu, 10 Feb 2005 12:47:31 -0500 From: Vadim Nasardinov Organization: Red Hat / Westford To: pgsql-jdbc@postgresql.org Subject: Re: Crystal Reports / PostgreSQL Date: Thu, 10 Feb 2005 12:44:09 -0500 User-Agent: KMail/1.5.4 References: <420B8640.3050407@free.fr> In-Reply-To: <420B8640.3050407@free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200502101244.09593@vadim.nasardinov> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.023 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/66 X-Sequence-Number: 12246 On Thursday 10 February 2005 11:05, Xavier Poinsard wrote: > > I don't know, it doesn't seem all that useful. Anyone doing real > > development will surely know what function they are calling and > > will have the stacktrace handy. If we find out that Crystal > > Reports or other applications only return the error message with > > no context then we should probably do something about it. For now > > I believe time would be better spent actually implementing these > > methods. > > Sure, but they are a lot of methods to implement and if we want to > fix quickly the functions used by Crystal reports (for example), > without stack trace, it is the only simple way. I haven't been following this thread very closely. Excuse me if I'm totally off base here. I assume you're talking about this method in org.postgresql.Driver: public static SQLException notImplemented() { return new PSQLException(GT.tr("This method is not yet implemented."), PSQLState.NOT_IMPLEMENTED); } I agree with Kris that there is no need to include the method name in the exception. It is already shown in the stack trace. However, you can easily patch this method so that it includes the caller's method name in its error message. All you have to do is peek one level up the stack trace.