commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r429128 - /jakarta/commons/proper/jelly/trunk/src/java/org/apache/commons/jelly/JellyException.java
Date Sun, 06 Aug 2006 14:12:43 GMT
Author: dion
Date: Sun Aug  6 07:12:42 2006
New Revision: 429128

URL: http://svn.apache.org/viewvc?rev=429128&view=rev
Log:
Jelly-233

Modified:
    jakarta/commons/proper/jelly/trunk/src/java/org/apache/commons/jelly/JellyException.java

Modified: jakarta/commons/proper/jelly/trunk/src/java/org/apache/commons/jelly/JellyException.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/jelly/trunk/src/java/org/apache/commons/jelly/JellyException.java?rev=429128&r1=429127&r2=429128&view=diff
==============================================================================
--- jakarta/commons/proper/jelly/trunk/src/java/org/apache/commons/jelly/JellyException.java
(original)
+++ jakarta/commons/proper/jelly/trunk/src/java/org/apache/commons/jelly/JellyException.java
Sun Aug  6 07:12:42 2006
@@ -145,7 +145,12 @@
     
     
     public String getMessage() {
-        return fileName + ":" + lineNumber + ":" + columnNumber + ": <" + elementName
+ "> " + getReason();
+        if (fileName == null && lineNumber == -1 && columnNumber == -1 &&
elementName == null) {
+            return getReason();
+        }
+        else {
+            return fileName + ":" + lineNumber + ":" + columnNumber + ": <" + elementName
+ "> " + getReason();
+        }
     }
 
     public String getReason() {



---------------------------------------------------------------------
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