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:
- IncorrectTypeHintException,- TokenException
Base exception indicating a syntax error.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionSyntaxException(String message, int startLine, int startColumn) SyntaxException(String message, int startLine, int startColumn, int endLine, int endColumn) SyntaxException(String message, Throwable cause, int startLine, int startColumn) SyntaxException(String message, Throwable cause, int startLine, int startColumn, int endLine, int endColumn) SyntaxException(String message, ASTNode node) 
- 
Method SummaryModifier and TypeMethodDescriptionintintintgetLine()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.GroovyExceptionisFatal, setFatalMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
SyntaxException
- 
SyntaxException
- 
SyntaxException
- 
SyntaxException
- 
SyntaxException
 
- 
- 
Method Details- 
setSourceLocator
- 
getSourceLocator
- 
getLinepublic int getLine()Retrieve the line upon which the error occurred.- Returns:
- The line.
 
- 
getStartLinepublic int getStartLine()- Returns:
- the line on which the error occurs
 
- 
getStartColumnpublic int getStartColumn()Retrieve the column upon which the error occurred.- Returns:
- The column.
 
- 
getEndLinepublic int getEndLine()- Returns:
- the end line on which the error occurs
 
- 
getEndColumnpublic int getEndColumn()- Returns:
- the end column on which the error occurs
 
- 
getOriginalMessage
- 
getMessage- Overrides:
- getMessagein class- Throwable
 
 
-