org.codehaus.groovy.syntax.lexer
Class LexerException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--org.codehaus.groovy.GroovyException
|
+--org.codehaus.groovy.syntax.SyntaxException
|
+--org.codehaus.groovy.syntax.lexer.LexerException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- UnexpectedCharacterException, UnterminatedStringLiteralException
- public class LexerException
- extends SyntaxException
Base exception indicating a lexical error.
- Version:
- $Id: LexerException.java,v 1.2 2003/09/26 17:36:32 jstrachan Exp $
- Author:
- bob mcwhirter
- See Also:
- Serialized Form
Method Summary |
int |
getColumn()
Retrieve the column upon which the error occurred. |
int |
getLine()
Retrieve the line upon which the error occurred. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
LexerException
public LexerException(int line,
int column)
- Construct.
- Parameters:
line
- Line upon which the error occurred.column
- Column upon which the error occurred.
getLine
public int getLine()
- Retrieve the line upon which the error occurred.
- Returns:
- The line.
getColumn
public int getColumn()
- Retrieve the column upon which the error occurred.
- Returns:
- The column.
Copyright © 2003 The Codehaus. All Rights Reserved.