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:
Serializable,GroovyExceptionInterface
- Direct Known Subclasses:
TokenException
Base exception indicating a syntax error.
- Version:
- $Id$
- Author:
- bob mcwhirter
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSyntaxException(String message, int line, int column) SyntaxException(String message, Throwable cause, int line, int column) -
Method Summary
Modifier and TypeMethodDescriptionintintgetLine()Retrieve the line upon which the error occurred.intRetrieve the column upon which the error occurred.intvoidsetSourceLocator(String sourceLocator) Methods inherited from class org.codehaus.groovy.GroovyException
isFatal, setFatalMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SyntaxException
-
SyntaxException
-
-
Method Details
-
setSourceLocator
-
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
-
getMessage
- Overrides:
getMessagein classThrowable
-