commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dion gillard (JIRA)" <commons-...@jakarta.apache.org>
Subject [jira] Resolved: (JELLY-233) JellyException.getMessage() shouldn't show pointless "null:-1:-1:<null>" in the error message
Date Sun, 06 Aug 2006 14:11:14 GMT
     [ http://issues.apache.org/jira/browse/JELLY-233?page=all ]

dion gillard resolved JELLY-233.
--------------------------------

    Resolution: Fixed

Committed - good idea.

> JellyException.getMessage() shouldn't show pointless "null:-1:-1:<null>" in the
error message
> ---------------------------------------------------------------------------------------------
>
>                 Key: JELLY-233
>                 URL: http://issues.apache.org/jira/browse/JELLY-233
>             Project: Commons Jelly
>          Issue Type: Improvement
>          Components: core / taglib.core
>    Affects Versions: 1.1
>            Reporter: Kohsuke Kawaguchi
>
> JellyExceptions are often created without supplying location information. A little change
to the JellyException.getMessage() can improve the readability of the error message, as follows:
>     public String getMessage() {
>         if(fileName==null && lineNumber==-1 && columnNumber==-1 &&
elementName==null)
>             return getReason();
>         else
>             return fileName + ":" + lineNumber + ":" + columnNumber + ": <" + elementName
+ "> " + getReason();
>     }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message