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

2002/css-validator/org/w3c/css/parser/analyzer TokenMgrError.java,1.3,1.4

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-0005yG-K5@lionel-hutz.w3.org>

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

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

Index: TokenMgrError.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/analyzer/TokenMgrError.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- TokenMgrError.java	30 Mar 2004 13:24:18 -0000	1.3
+++ TokenMgrError.java	22 Jul 2005 09:45:18 -0000	1.4
@@ -32,7 +32,13 @@
     * one of the above 4 values.
     */
    int errorCode;
+   
+   private int errorLine;
 
+   public int getErrorLine() {
+	return errorLine;
+   } 
+   
    /**
     * Replaces unprintable characters by their espaced (or unicode escaped)
     * equivalents in the given string
@@ -127,7 +133,10 @@
       errorCode = reason;
    }
 
-   public TokenMgrError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar, int reason) {
-      this(LexicalError(EOFSeen, lexState, errorLine, errorColumn, errorAfter, curChar), reason);
+   public TokenMgrError(boolean EOFSeen, int lexState, int errorLine, 
+	   int errorColumn, String errorAfter, char curChar, int reason) {
+      this(LexicalError(EOFSeen, lexState, errorLine, errorColumn, errorAfter, curChar), 
+	      reason);
+      this.errorLine = errorLine;
    }
 }
Received on Friday, 22 July 2005 09:45:26 GMT

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