Groovy 2.2.0

org.codehaus.groovy.syntax
[Java] Class SyntaxException

java.lang.Object
  java.lang.Throwable
      java.lang.Exception
          org.codehaus.groovy.GroovyException
              org.codehaus.groovy.syntax.SyntaxException

public class SyntaxException
extends GroovyException

Base exception indicating a syntax error.

Authors:
bob mcwhirter
Version:
\$Id\$


Constructor Summary
SyntaxException(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)

 
Method Summary
int getEndColumn()

@return the end column on which the error occurs

int getEndLine()

@return the end line on which the error occurs

int getLine()

Retrieve the line upon which the error occurred.

String getMessage()

String getOriginalMessage()

String getSourceLocator()

int getStartColumn()

Retrieve the column upon which the error occurred.

int getStartLine()

@return the line on which the error occurs

void setSourceLocator(String sourceLocator)

 
Methods inherited from class GroovyException
isFatal, setFatal
 
Methods inherited from class Exception
printStackTrace, printStackTrace, printStackTrace, fillInStackTrace, getCause, initCause, toString, getMessage, getLocalizedMessage, getStackTrace, setStackTrace, addSuppressed, getSuppressed, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll
 

Constructor Detail

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 Detail

getEndColumn

public int getEndColumn()
Returns:
the end column on which the error occurs


getEndLine

public int getEndLine()
Returns:
the end line on which the error occurs


getLine

public int getLine()
Retrieve the line upon which the error occurred.
Returns:
The line.


getMessage

public String getMessage()


getOriginalMessage

public String getOriginalMessage()


getSourceLocator

public String getSourceLocator()


getStartColumn

public int getStartColumn()
Retrieve the column upon which the error occurred.
Returns:
The column.


getStartLine

public int getStartLine()
Returns:
the line on which the error occurs


setSourceLocator

public void setSourceLocator(String sourceLocator)


 

Copyright © 2003-2013 The Codehaus. All rights reserved.