forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r485910 - /forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/exception/ProcessingException.java
Date Mon, 11 Dec 2006 22:11:02 GMT
Author: rgardler
Date: Mon Dec 11 14:11:02 2006
New Revision: 485910

URL: http://svn.apache.org/viewvc?view=rev&rev=485910
Log:
Append cause error message to our processing error message

Modified:
    forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/exception/ProcessingException.java

Modified: forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/exception/ProcessingException.java
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/exception/ProcessingException.java?view=diff&rev=485910&r1=485909&r2=485910
==============================================================================
--- forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/exception/ProcessingException.java
(original)
+++ forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/exception/ProcessingException.java
Mon Dec 11 14:11:02 2006
@@ -31,4 +31,13 @@
 		super(message);
 	}
 
+	@Override
+	public String getMessage() {
+		String msg = super.getMessage();
+		if (getCause() != null) {
+			msg = msg + " caused by " + getCause().getMessage();
+		}
+		return msg;
+	}
+
 }



Mime
View raw message