2002/css-validator/org/w3c/css/css StyleSheetParser.java,1.2,1.3 soap12.properties.en,1.5,1.6

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

Modified Files:
	StyleSheetParser.java soap12.properties.en 
Log Message:
Added code for error Handling (Jean-Guilhem Rouel)

Index: StyleSheetParser.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/StyleSheetParser.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- StyleSheetParser.java	8 Apr 2002 21:16:38 -0000	1.2
+++ StyleSheetParser.java	22 Jul 2005 09:45:18 -0000	1.3
@@ -6,6 +6,9 @@
 // Please first read the full copyright statement in file COPYRIGHT.html
 /*
  * $Log$
+ * Revision 1.3  2005/07/22 09:45:18  ylafon
+ * Added code for error Handling (Jean-Guilhem Rouel)
+ *
  * Revision 1.2  2002/04/08 21:16:38  plehegar
  * New
  *
@@ -27,6 +30,7 @@
 import java.util.StringTokenizer;
 import java.net.URL;
 
+import org.w3c.css.parser.CssParseException;
 import org.w3c.css.parser.CssValidatorListener;
 import org.w3c.css.parser.CssFouffa;
 import org.w3c.css.parser.Errors;
@@ -40,6 +44,7 @@
 import org.w3c.css.parser.AtRuleMedia;
 import org.w3c.css.parser.AtRule;
 import org.w3c.css.parser.CssError;
+import org.w3c.css.parser.analyzer.TokenMgrError;
 import org.w3c.css.util.InvalidParamException;
 
 /**
@@ -269,6 +274,14 @@
 	    er.addError(new org.w3c.css.parser.CssError(url.toString(), 
 							-1, e));
 	    notifyErrors(er);
+	} catch(TokenMgrError e) {
+	    Errors er = new Errors();
+	    er.addError(new org.w3c.css.parser.CssError(url.toString(), e.getErrorLine(), new CssParseException(new Exception(e))));
+	    notifyErrors(er);
+	} catch(RuntimeException e) {
+	    Errors er = new Errors();
+	    er.addError(new org.w3c.css.parser.CssError(url.toString(), cssFouffa.getLine(), new CssParseException(e)));
+	    notifyErrors(er);
 	}
     }
     

Index: soap12.properties.en
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/soap12.properties.en,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- soap12.properties.en	5 Dec 2003 14:31:26 -0000	1.5
+++ soap12.properties.en	22 Jul 2005 09:45:18 -0000	1.6
@@ -25,12 +25,12 @@
 
 # the beginning of the document
 document: \
-<?xml version='1.0'<!-- #encoding -->?>\n\
+<?xml version='1.0' encoding="<!-- #charset -->"?>\n\
 <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">\n\
 \ \ <env:Body>\n\
 \ \ \ \ <m:cssvalidationresponse \n\
 \ \ \ \ \ \ \ env:encodingStyle="http://www.w3.org/2003/05/soap-encoding" \n\
-\ \ \ \ \ \ \ xmlns:m="http://www.w3.org/2003/10/20-css-validator"> \n\
+\ \ \ \ \ \ \ xmlns:m="http://www.w3.org/2005/07/css-validator"> \n\
 \ \ \ \ \ <m:uri><!-- #file-title --></m:uri> \n\
 \ \ \ \ \ <m:checkedby>http://jigsaw.w3.org/css-validator/</m:checkedby>\n\
 \ \ \ \ \ <m:csslevel><!-- #cssversion --></m:csslevel>\n\

Received on Friday, 22 July 2005 09:45:26 UTC