Class ParseException

  • All Implemented Interfaces:
    java.io.Serializable

    
    public class ParseException
    extends RuntimeException
                        

    This exception is thrown when parse errors are encountered. You can explicitly create objects of this exception type by calling the method generateParseException in the generated parser. You can modify this class to customize your error reporting mechanisms so long as you retain the public fields.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      ParseException(Token currentTokenVal, Array<Array<int>> expectedTokenSequencesVal, Array<String> tokenImageVal) This constructor is used by the method "generateParseException" in the generated parser.
      ParseException() The following constructors are for use by you for whatever purpose you can think of.
      ParseException(String message) Constructor with message.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ParseException

        ParseException(Token currentTokenVal, Array<Array<int>> expectedTokenSequencesVal, Array<String> tokenImageVal)
        This constructor is used by the method "generateParseException" in the generated parser.
      • ParseException

        ParseException()
        The following constructors are for use by you for whatever purpose you can think of.
      • ParseException

        ParseException(String message)
        Constructor with message.
    • Method Detail