Package org.kigalisim.lang.parse
Class ParseError
java.lang.Object
org.kigalisim.lang.parse.ParseError
Description of an error encountered in parsing a QubecTalk source file or string.
Structure representing a parse error that occurs during the compilation process of a QubecTalk source file which encapsulates the line number where the error was encountered and a message providing details about the error.
-
Constructor Summary
ConstructorsConstructorDescriptionParseError(int line, String message) Constructs a new ParseError with the specified line number and message. -
Method Summary
Modifier and TypeMethodDescriptionintgetLine()Returns the line number where the parsing error occurred.Returns the error message describing the parsing failure.
-
Constructor Details
-
ParseError
Constructs a new ParseError with the specified line number and message.- Parameters:
line- the line number where the parsing error occurredmessage- the error message describing the parsing failure
-
-
Method Details
-
getLine
public int getLine()Returns the line number where the parsing error occurred.- Returns:
- the line number of the error
-
getMessage
Returns the error message describing the parsing failure.- Returns:
- the error message
-