You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Gary L Peskin <ga...@firstech.com> on 2000/12/03 21:26:13 UTC

Suggested Change to JAXP 1.1 - TransformerException

I have a proposed enhancement to the class
javax.xml.transform.TransformerException.  Severl of the constructors
for this exception allow it to wrap an existing Exception.

However, TransformerException does not override the getMessage() method
that it inherits from class java.lang.Throwable.  This means that, for
wrapped exceptions, the String returned by getMessage() is much less
informative than it could be.  In many cases, the existing
implementation results in a pretty useless message.

I propose adding a getMessage() method to TransformerException that
would call getMessageAndLocation() and then call getMessage() on any
embedded exception, perhaps with some kind of divider that would
indicate where the getMessageAndLocation() ended and the embedded
getMessage() started.

Also, the web page at
http://java.sun.com/aboutJava/communityprocess/review/jsr063/index.html
doesn't indicate when the Public Review 2 period closes so that might be
a nice addition.

Gary