W3C home > Mailing lists > Public > www-validator-cvs@w3.org > July 2005

2002/css-validator/org/w3c/css/parser CssFouffa.java,1.28,1.29

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 22 Jul 2005 09:45:20 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Dvu5o-0005yA-I0@lionel-hutz.w3.org>

Update of /sources/public/2002/css-validator/org/w3c/css/parser
In directory hutz:/tmp/cvs-serv22891/parser

Modified Files:
	CssFouffa.java 
Log Message:
Added code for error Handling (Jean-Guilhem Rouel)

Index: CssFouffa.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/CssFouffa.java,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- CssFouffa.java	20 Jul 2005 12:35:37 -0000	1.28
+++ CssFouffa.java	22 Jul 2005 09:45:18 -0000	1.29
@@ -20,9 +20,12 @@
 import java.util.Vector;
 
 import org.w3c.css.css.StyleSheetOrigin;
+import org.w3c.css.parser.CssParseException;
+import org.w3c.css.parser.Errors;
 import org.w3c.css.parser.analyzer.CssParser;
 import org.w3c.css.parser.analyzer.CssParserTokenManager;
 import org.w3c.css.parser.analyzer.ParseException;
+import org.w3c.css.parser.analyzer.TokenMgrError;
 import org.w3c.css.properties.CssProperty;
 import org.w3c.css.util.ApplContext;
 import org.w3c.css.util.HTTPURL;
@@ -335,6 +338,8 @@
     public void parseStyle() {
 	try {
 	    parserUnit();
+	} catch(TokenMgrError e) {
+	    throw e;
 	} catch (Throwable e) {
 	    if (Util.onDebug) {
 		e.printStackTrace();
Received on Friday, 22 July 2005 09:45:23 GMT

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