Package org.apache.groovy.ginq.dsl
Class GinqSyntaxError
java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.AssertionError
org.apache.groovy.ginq.dsl.GinqSyntaxError
- All Implemented Interfaces:
Serializable
Represents GINQ syntax error
- Since:
- 4.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGinqSyntaxError(String message, int line, int column) Creates a syntax error at the supplied source position.GinqSyntaxError(String message, Expression expression) Creates a syntax error using the position of the given expression. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
GinqSyntaxError
Creates a syntax error using the position of the given expression.- Parameters:
message- the error messageexpression- the expression supplying line and column information
-
GinqSyntaxError
Creates a syntax error at the supplied source position.- Parameters:
message- the error messageline- the source linecolumn- the source column
-
-
Method Details
-
getLine
public int getLine()Returns the source line of the error.- Returns:
- the line number
-
getColumn
public int getColumn()Returns the source column of the error.- Returns:
- the column number
-