Class LexerFailureException

All Implemented Interfaces:
Serializable

public class LexerFailureException extends SysException
This exception is thrown when the lexical analysis failed.
Since:
6.0
Author:
F. van der Meer
See Also:
  • Constructor Details

    • LexerFailureException

      public LexerFailureException(Position position, Object token)
      Construct a parse failure exception at the specified character position. Optionally the token which caused the error can be passed as well.
      Parameters:
      position - The character position of the expression where the exception occurred ( not byte position )
      token - The token which caused the failure.
  • Method Details

    • getPosition

      public Position getPosition()
      Returns the position.
      Returns:
      The position which designates the failure position.
    • getOffset

      public int getOffset()
      This method returns the offset of the position.
      Returns:
      the offset of the position.
    • getToken

      public Object getToken()
      This method returns the token for which the exception occurred.
      Returns:
      The object token which can be null when it was not known.