W3C home > Mailing lists > Public > www-validator-cvs@w3.org > October 2009

2006/unicorn/src/org/w3c/unicorn/util Message.java,1.4,1.5

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 02 Oct 2009 10:11:54 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Mtf7C-0007sL-WC@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/util
In directory hutz:/tmp/cvs-serv30259/src/org/w3c/unicorn/util

Modified Files:
	Message.java 
Log Message:
added the Exception class to a Message content 

Index: Message.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/util/Message.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- Message.java	2 Oct 2009 09:54:17 -0000	1.4
+++ Message.java	2 Oct 2009 10:11:52 -0000	1.5
@@ -17,7 +17,8 @@
 	}
 	
 	public Message(Exception e) {
-		content = e.getMessage() + "\n";
+		content = e.getClass() + "\n";
+		content += e.getMessage() + "\n";
 		for (StackTraceElement stackTraceElement : e.getStackTrace()) {
 			content += stackTraceElement.toString() + "\n";
 		}
Received on Friday, 2 October 2009 10:11:58 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:39 UTC