Class SyntaxException

All Implemented Interfaces:
Serializable, GroovyExceptionInterface
Direct Known Subclasses:
IncorrectTypeHintException, TokenException

public class SyntaxException extends GroovyException
Base exception indicating a syntax error.
See Also:
  • Constructor Details

    • SyntaxException

      public SyntaxException(String message, ASTNode node)
    • SyntaxException

      public SyntaxException(String message, int startLine, int startColumn)
    • SyntaxException

      public SyntaxException(String message, int startLine, int startColumn, int endLine, int endColumn)
    • SyntaxException

      public SyntaxException(String message, Throwable cause, int startLine, int startColumn)
    • SyntaxException

      public SyntaxException(String message, Throwable cause, int startLine, int startColumn, int endLine, int endColumn)
  • Method Details

    • setSourceLocator

      public void setSourceLocator(String sourceLocator)
    • getSourceLocator

      public String getSourceLocator()
    • getLine

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

      public int getStartLine()
      the line on which the error occurs
    • getStartColumn

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

      public int getEndLine()
      the end line on which the error occurs
    • getEndColumn

      public int getEndColumn()
      the end column on which the error occurs
    • getOriginalMessage

      public String getOriginalMessage()
    • getMessage

      public String getMessage()
      getMessage in class Throwable