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

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

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 05 Oct 2009 14:25:44 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MuoVU-0003uz-1E@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/exceptions
In directory hutz:/tmp/cvs-serv14938/src/org/w3c/unicorn/exceptions

Modified Files:
	UnicornException.java 
Log Message:
simpler way to make the Message level enum

Index: UnicornException.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/exceptions/UnicornException.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- UnicornException.java	18 Sep 2009 14:54:13 -0000	1.3
+++ UnicornException.java	5 Oct 2009 14:25:41 -0000	1.4
@@ -1,7 +1,6 @@
 package org.w3c.unicorn.exceptions;
 
 import org.w3c.unicorn.util.Message;
-import org.w3c.unicorn.util.Message.Level;
 
 public class UnicornException extends Exception {
 	
@@ -21,8 +20,8 @@
 		this.message = message;
 	}
 
-	public UnicornException(Level error, String message, String content) {
-		this.message = new Message(error, message, content);
+	public UnicornException(int level, String message, String content) {
+		this.message = new Message(level, message, content);
 	}
 
 	public Message getUnicornMessage() {
Received on Monday, 5 October 2009 14:25:45 UTC

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