2002/css-validator/org/w3c/css/parser CssError.java,1.4,1.5

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

Modified Files:
	CssError.java 
Log Message:
Fix for 
http://www.w3.org/Bugs/Public/show_bug.cgi?id=6297
Handling TokenMgrError while processing CSS fragments in HTML (we might
ass other errors if needed). Reworked CssError to access Exceptions and 
Errors (Throwable), and modified StyleSheetGenerator accordingly.
+ some remaining optimisation+templating


Index: CssError.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/CssError.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- CssError.java	14 Sep 2005 15:14:18 -0000	1.4
+++ CssError.java	10 Dec 2008 15:10:15 -0000	1.5
@@ -27,7 +27,7 @@
   /**
    * The unknown error
    */
-  Exception error;
+  Throwable error;
 
   /**
    * Create a new CssError
@@ -42,7 +42,7 @@
    * @param line       The error line number
    * @param error      The exception
    */
-  public CssError(String sourceFile, int line, Exception error) {
+  public CssError(String sourceFile, int line, Throwable error) {
     this.sourceFile = sourceFile;
     this.line = line;
     this.error = error;
@@ -53,7 +53,7 @@
    *
    * @param error      The exception
    */
-  public CssError(Exception error) {
+  public CssError(Throwable error) {
     this.error = error;
   }
 
@@ -74,7 +74,7 @@
   /**
    * get the unknown error
    */
-  public Exception getException() {
+  public Throwable getException() {
     return error;
   }
 }

Received on Wednesday, 10 December 2008 15:10:28 UTC