org.codehaus.groovy.syntax
Class SyntaxException

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

public class SyntaxException
extends GroovyException

Base exception indicating a syntax error.

Version:
$Id: SyntaxException.java,v 1.9 2004/02/26 17:46:19 jstrachan Exp $
Author:
bob mcwhirter
See Also:
Serialized Form

Constructor Summary
SyntaxException(String message, int line, int column)
           
 
Method Summary
 int getEndColumn()
           
 int getLine()
          Retrieve the line upon which the error occurred.
 String getSourceLocator()
           
 int getStartColumn()
          Retrieve the column upon which the error occurred.
 int getStartLine()
           
 void setSourceLocator(String sourceLocator)
           
 
Methods inherited from class org.codehaus.groovy.GroovyException
isFatal, setFatal
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SyntaxException

public SyntaxException(String message,
                       int line,
                       int column)
Method Detail

setSourceLocator

public void setSourceLocator(String sourceLocator)

getSourceLocator

public String getSourceLocator()

getLine

public int getLine()
Retrieve the line upon which the error occurred.

Returns:
The line.

getStartColumn

public int getStartColumn()
Retrieve the column upon which the error occurred.

Returns:
The column.

getStartLine

public int getStartLine()
Returns:
the end of the line on which the error occurs

getEndColumn

public int getEndColumn()
Returns:
the end column on which the error occurs


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