Package org.codehaus.groovy.syntax
Class SyntaxException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.codehaus.groovy.GroovyException
-
- org.codehaus.groovy.syntax.SyntaxException
-
- All Implemented Interfaces:
java.io.Serializable,GroovyExceptionInterface
- Direct Known Subclasses:
TokenException
public class SyntaxException extends GroovyException
Base exception indicating a syntax error.- Version:
- $Id$
- Author:
- bob mcwhirter
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SyntaxException(java.lang.String message, int line, int column)SyntaxException(java.lang.String message, java.lang.Throwable cause, int line, int column)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetEndColumn()intgetLine()Retrieve the line upon which the error occurred.java.lang.StringgetMessage()java.lang.StringgetOriginalMessage()java.lang.StringgetSourceLocator()intgetStartColumn()Retrieve the column upon which the error occurred.intgetStartLine()voidsetSourceLocator(java.lang.String sourceLocator)-
Methods inherited from class org.codehaus.groovy.GroovyException
isFatal, setFatal
-
-
-
-
Method Detail
-
setSourceLocator
public void setSourceLocator(java.lang.String sourceLocator)
-
getSourceLocator
public java.lang.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
-
getOriginalMessage
public java.lang.String getOriginalMessage()
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
-