Class ParseError

java.lang.Object
org.kigalisim.lang.parse.ParseError

public class ParseError extends Object
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 Details

    • ParseError

      public ParseError(int line, String message)
      Constructs a new ParseError with the specified line number and message.
      Parameters:
      line - the line number where the parsing error occurred
      message - 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

      public String getMessage()
      Returns the error message describing the parsing failure.
      Returns:
      the error message