From: Vadim Nasardinov <vadimn@redhat.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Crystal Reports / PostgreSQL
Date: Thu, 10 Feb 2005 12:44:09 -0500
Message-ID: <200502101244.09593@vadim.nasardinov> (raw)
In-Reply-To: <420B8640.3050407@free.fr>
References: <ED153B99D71F5B4ABE318CF841A5C3E69BA069@RPIDALEXC004.corp.realpage.com>
<Pine.BSO.4.56.0502100404260.25634@leary.csoft.net>
<420B8640.3050407@free.fr>
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.
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: vadimn@redhat.com
Subject: Re: Crystal Reports / PostgreSQL
In-Reply-To: <200502101244.09593@vadim.nasardinov>
References: <ED153B99D71F5B4ABE318CF841A5C3E69BA069@RPIDALEXC004.corp.realpage.com> <Pine.BSO.4.56.0502100404260.25634@leary.csoft.net> <420B8640.3050407@free.fr> <200502101244.09593@vadim.nasardinov>
* 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