Package org.incenp.obofoundry.kgcl
Class KGCLSyntaxError
java.lang.Object
org.incenp.obofoundry.kgcl.KGCLSyntaxError
A syntax error encountered when parsing a KGCL program.
-
Constructor Summary
ConstructorsConstructorDescriptionKGCLSyntaxError
(int line, int position, String message) Creates a new instance. -
Method Summary
-
Constructor Details
-
KGCLSyntaxError
Creates a new instance.- Parameters:
line
- The line number where the error occurred.position
- The position in the line where the error occurred.message
- The error message from the ANTLR parser.
-
-
Method Details
-
getLine
public int getLine()Gets the line where the error occurred.- Returns:
- The 1-based index of the offending line, starting from the beginning of the input.
-
getPosition
public int getPosition()Gets the position in the line where the error occurred.- Returns:
- The 0-based index of the offending character, starting from the beginning of the line.
-
getMessage
Gets the error message.- Returns:
- The error message from the ANTLR parser.
-
toString
-