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

2006/unicorn/src/org/w3c/unicorn/input DirectInputParameter.java,1.5,1.6

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 06 Oct 2009 10:05:18 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Mv6v0-0008Oq-8Y@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/input
In directory hutz:/tmp/cvs-serv32274/src/org/w3c/unicorn/input

Modified Files:
	DirectInputParameter.java 
Log Message:
new UnicornException method

Index: DirectInputParameter.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/input/DirectInputParameter.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- DirectInputParameter.java	5 Oct 2009 14:25:41 -0000	1.5
+++ DirectInputParameter.java	6 Oct 2009 10:05:16 -0000	1.6
@@ -21,13 +21,13 @@
 	@Override
 	public void check() throws UnicornException {
 		if (document == null || document.equals(""))
-			throw new UnicornException(Message.ERROR, "$message_empty_direct_input", null);
+			throw new UnicornException(Message.ERROR, "$message_empty_direct_input");
 		if (sMimeType == null || sMimeType.equals(""))
-			throw new UnicornException(Message.ERROR, "$message_missing_mime_type", null);
+			throw new UnicornException(Message.ERROR, "$message_missing_mime_type");
 		try {
 			mimeType = new MimeType(sMimeType);
 		} catch (MimeTypeParseException e) {
-			throw new UnicornException(Message.ERROR, "$message_invalid_mime_type", null);
+			throw new UnicornException(Message.ERROR, "$message_invalid_mime_type", null, sMimeType);
 		}
 		inputModule = new DirectInputModule(mimeType, document);
 	}
Received on Tuesday, 6 October 2009 10:05:21 UTC

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