2006/unicorn/src/org/w3c/unicorn UnicornCall.java,1.16,1.17

Update of /sources/public/2006/unicorn/src/org/w3c/unicorn
In directory hutz:/tmp/cvs-serv2715/src/org/w3c/unicorn

Modified Files:
	UnicornCall.java 
Log Message:
uses new UnicornException constructor

Index: UnicornCall.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/UnicornCall.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- UnicornCall.java	17 Sep 2009 16:39:51 -0000	1.16
+++ UnicornCall.java	18 Sep 2009 15:01:43 -0000	1.17
@@ -99,11 +99,8 @@
 		inputParameter.check();
 		
 		MimeType aMimeType = inputParameter.getMimeType();
-		if (!aTask.getSupportedMimeTypes().contains(aMimeType.toString())) {
-			//throw new UnsupportedMimeTypeException("Mime-type: " + aMimeType + " is not supported by this task.");
-			Message mess = new Message(Message.Level.ERROR, "$message_unsupported_mime_type", null);
-			throw new UnicornException(mess);
-		}
+		if (!aTask.getSupportedMimeTypes().contains(aMimeType.toString()))
+			throw new UnicornException(Message.Level.ERROR, "$message_unsupported_mime_type", null);
 		
 		doNode(inputParameter, aTask.getTree());
 	}
@@ -621,5 +618,4 @@
 	public void setInputParameter(final InputParameter inputParameter) {
 		this.inputParameter = inputParameter;
 	}
-	
 }
\ No newline at end of file

Received on Friday, 18 September 2009 15:01:54 UTC