Class ParseException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
LexerException, UnexpectedCharacterException, UnexpectedTokenException

public class ParseException extends RuntimeException
Thrown to indicate an error during the parsing.
Since:
0.7.0
See Also:
  • Constructor Details

    • ParseException

      public ParseException()
      Constructs a ParseException instance with no error message.
    • ParseException

      public ParseException(String message)
      Constructs a ParseException instance with an error message.
      Parameters:
      message - the error message
    • ParseException

      public ParseException(String message, UnexpectedCharacterException cause)
      Constructs a ParseException instance with an error message and the cause exception.
      Parameters:
      message - the error message
      cause - an exception that caused this exception
  • Method Details

    • toString

      public String toString()
      Returns the string representation of this exception.
      Overrides:
      toString in class Throwable
      Returns:
      the string representation of this exception