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:
- IncorrectTypeHintException,- TokenException
 
 public class SyntaxException extends GroovyException Base exception indicating a syntax error.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description SyntaxException(java.lang.String message, int startLine, int startColumn)SyntaxException(java.lang.String message, int startLine, int startColumn, int endLine, int endColumn)SyntaxException(java.lang.String message, java.lang.Throwable cause, int startLine, int startColumn)SyntaxException(java.lang.String message, java.lang.Throwable cause, int startLine, int startColumn, int endLine, int endColumn)SyntaxException(java.lang.String message, ASTNode node)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetEndColumn()intgetEndLine()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.GroovyExceptionisFatal, setFatal
 
- 
 
- 
- 
- 
Constructor Detail- 
SyntaxExceptionpublic SyntaxException(java.lang.String message, ASTNode node)
 - 
SyntaxExceptionpublic SyntaxException(java.lang.String message, int startLine, int startColumn)
 - 
SyntaxExceptionpublic SyntaxException(java.lang.String message, int startLine, int startColumn, int endLine, int endColumn)
 - 
SyntaxExceptionpublic SyntaxException(java.lang.String message, java.lang.Throwable cause, int startLine, int startColumn)
 - 
SyntaxExceptionpublic SyntaxException(java.lang.String message, java.lang.Throwable cause, int startLine, int startColumn, int endLine, int endColumn)
 
- 
 - 
Method Detail- 
setSourceLocatorpublic void setSourceLocator(java.lang.String sourceLocator) 
 - 
getSourceLocatorpublic java.lang.String 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
 
 - 
getOriginalMessagepublic java.lang.String getOriginalMessage() 
 - 
getMessagepublic java.lang.String getMessage() - Overrides:
- getMessagein class- java.lang.Throwable
 
 
- 
 
-