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

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 UTC