Class LexerException

  • All Implemented Interfaces:
    java.io.Serializable

    public class LexerException
    extends ParseException
    Thrown during the lexical analysis when an illegal character is encountered.
    Since:
    0.7.0
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String expr
      The string being analyzed starting from an illegal character.
    • Constructor Summary

      Constructors 
      Constructor Description
      LexerException​(java.lang.String expr)
      Constructs a LexerException instance with a string starting from an illegal character.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()
      Returns the string representation of this exception.
      • Methods inherited from class java.lang.Throwable

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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • expr

        private final java.lang.String expr
        The string being analyzed starting from an illegal character.
    • Constructor Detail

      • LexerException

        LexerException​(java.lang.String expr)
        Constructs a LexerException instance with a string starting from an illegal character.
        Parameters:
        expr - the string starting from an illegal character
    • Method Detail

      • toString

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