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

2006/unicorn/src/org/w3c/unicorn/output OutputModule.java,1.9,1.10

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 24 Sep 2009 17:43:15 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MqsLb-0007Y4-4b@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/output
In directory hutz:/tmp/cvs-serv29001/src/org/w3c/unicorn/output

Modified Files:
	OutputModule.java 
Log Message:
allows produceFirstOutput and produceOutput to throw UnicornExceptions. produceError must not throw any exceptions.

Index: OutputModule.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/output/OutputModule.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- OutputModule.java	24 Sep 2009 15:28:42 -0000	1.9
+++ OutputModule.java	24 Sep 2009 17:43:13 -0000	1.10
@@ -11,6 +11,7 @@
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.velocity.VelocityContext;
+import org.w3c.unicorn.exceptions.UnicornException;
 import org.w3c.unicorn.util.Language;
 import org.w3c.unicorn.util.Templates;
 
@@ -36,13 +37,13 @@
 	 * Generate a first output before the requests are launched.
 	 * 
 	 */
-	public abstract void produceFirstOutput(Map<String, Object> mapOfStringObject, final Writer aWriter);
+	public abstract void produceFirstOutput(Map<String, Object> mapOfStringObject, final Writer aWriter) throws UnicornException;
 	
 	/**
 	 * Generate the output of all response.
 	 * 
 	 */
-	public abstract void produceOutput(Map<String, Object> mapOfStringObject, final Writer aWriter);
+	public abstract void produceOutput(Map<String, Object> mapOfStringObject, final Writer aWriter) throws UnicornException;
 
 	/**
 	 * Generates an error output
Received on Thursday, 24 September 2009 17:43:23 GMT

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