org.codehaus.groovy.syntax
Class TokenException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.codehaus.groovy.GroovyException
              extended byorg.codehaus.groovy.syntax.SyntaxException
                  extended byorg.codehaus.groovy.syntax.TokenException
All Implemented Interfaces:
GroovyExceptionInterface, java.io.Serializable
Direct Known Subclasses:
ParserException, TokenMismatchException

public class TokenException
extends SyntaxException

See Also:
Serialized Form

Field Summary
private  Token token
           
 
Fields inherited from class org.codehaus.groovy.syntax.SyntaxException
 
Fields inherited from class org.codehaus.groovy.GroovyException
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
TokenException(java.lang.String message, java.lang.Throwable cause, int line, int column)
           
TokenException(java.lang.String message, Token token)
           
 
Method Summary
private static int getColumn(Token token)
           
 int getEndColumn()
           
private static int getLine(Token token)
           
 
Methods inherited from class org.codehaus.groovy.syntax.SyntaxException
getLine, getMessage, getSourceLocator, getStartColumn, getStartLine, setSourceLocator
 
Methods inherited from class org.codehaus.groovy.GroovyException
isFatal, setFatal
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

token

private Token token
Constructor Detail

TokenException

public TokenException(java.lang.String message,
                      Token token)

TokenException

public TokenException(java.lang.String message,
                      java.lang.Throwable cause,
                      int line,
                      int column)
Method Detail

getEndColumn

public int getEndColumn()
Overrides:
getEndColumn in class SyntaxException
Returns:
the end column on which the error occurs

getColumn

private static int getColumn(Token token)

getLine

private static int getLine(Token token)


Copyright © 2003-2005 The Codehaus. All Rights Reserved.