[Java] Class SyntaxException
- org.codehaus.groovy.syntax.SyntaxException
public class SyntaxException extends GroovyException
Base exception indicating a syntax error.
Constructor Summary
Constructor and description |
---|
SyntaxException
(String message, ASTNode node) |
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) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public int |
getEndColumn()
| |
public int |
getEndLine()
| |
public int |
getLine() Retrieve the line upon which the error occurred. | |
public String |
getMessage() | |
public String |
getOriginalMessage() | |
public String |
getSourceLocator() | |
public int |
getStartColumn() Retrieve the column upon which the error occurred. | |
public int |
getStartLine()
| |
public void |
setSourceLocator(String sourceLocator) |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class GroovyException | isFatal, setFatal |
Constructor Detail
public SyntaxException(String message, ASTNode node)
public SyntaxException(String message, int startLine, int startColumn)
public SyntaxException(String message, int startLine, int startColumn, int endLine, int endColumn)
public SyntaxException(String message, Throwable cause, int startLine, int startColumn)
public SyntaxException(String message, Throwable cause, int startLine, int startColumn, int endLine, int endColumn)
Method Detail
public int getEndColumn()
- Returns:
- the end column on which the error occurs
public int getEndLine()
- Returns:
- the end line on which the error occurs
public int getLine()
Retrieve the line upon which the error occurred.
- Returns:
- The line.
public String getMessage()
public String getOriginalMessage()
public String getSourceLocator()
public int getStartColumn()
Retrieve the column upon which the error occurred.
- Returns:
- The column.
public int getStartLine()
- Returns:
- the line on which the error occurs
public void setSourceLocator(String sourceLocator)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/syntax/SyntaxException.html