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:
- TokenException
public class SyntaxException
- extends GroovyException
Base exception indicating a syntax error.
- See Also:
- Serialized Form
Constructor Summary |
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)
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SyntaxException
public SyntaxException(java.lang.String message,
int startLine,
int startColumn)
SyntaxException
public SyntaxException(java.lang.String message,
int startLine,
int startColumn,
int endLine,
int endColumn)
SyntaxException
public SyntaxException(java.lang.String message,
java.lang.Throwable cause,
int startLine,
int startColumn)
SyntaxException
public SyntaxException(java.lang.String message,
java.lang.Throwable cause,
int startLine,
int startColumn,
int endLine,
int endColumn)
setSourceLocator
public void setSourceLocator(java.lang.String sourceLocator)
getSourceLocator
public java.lang.String getSourceLocator()
getLine
public int getLine()
- Retrieve the line upon which the error occurred.
- Returns:
- The line.
getStartLine
public int getStartLine()
- Returns:
- the line on which the error occurs
getStartColumn
public int getStartColumn()
- Retrieve the column upon which the error occurred.
- Returns:
- The column.
getEndLine
public int getEndLine()
- Returns:
- the end line on which the error occurs
getEndColumn
public int getEndColumn()
- Returns:
- the end column on which the error occurs
getOriginalMessage
public java.lang.String getOriginalMessage()
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in class java.lang.Throwable