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

2006/unicorn/src/org/w3c/unicorn/exceptions UnicornException.java,1.2,1.3

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 18 Sep 2009 14:54:15 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Moeql-0000S3-Pm@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/exceptions
In directory hutz:/tmp/cvs-serv1721/src/org/w3c/unicorn/exceptions

Modified Files:
	UnicornException.java 
Log Message:
New constructor based on Message constructor signature

Index: UnicornException.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/exceptions/UnicornException.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- UnicornException.java	17 Sep 2009 15:51:40 -0000	1.2
+++ UnicornException.java	18 Sep 2009 14:54:13 -0000	1.3
@@ -1,6 +1,7 @@
 package org.w3c.unicorn.exceptions;
 
 import org.w3c.unicorn.util.Message;
+import org.w3c.unicorn.util.Message.Level;
 
 public class UnicornException extends Exception {
 	
@@ -20,6 +21,10 @@
 		this.message = message;
 	}
 
+	public UnicornException(Level error, String message, String content) {
+		this.message = new Message(error, message, content);
+	}
+
 	public Message getUnicornMessage() {
 		return message;
 	}
Received on Friday, 18 September 2009 14:54:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:14 GMT