Class UnknownFunctionOrVariableException

All Implemented Interfaces:
Serializable

public class UnknownFunctionOrVariableException extends IllegalArgumentException
This exception is being thrown whenever Tokenizer finds unknown function or variable.
Author:
Bartosz Firyn (sarxos)
See Also:
  • Constructor Details

    • UnknownFunctionOrVariableException

      public UnknownFunctionOrVariableException(String exp, int position, int length)
      Parameters:
      exp - expression that throwed the exception
      position - location of the error
      length - length of the token
  • Method Details

    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
    • getExpression

      public String getExpression()
      Returns:
      Expression which contains unknown function or variable
    • getToken

      public String getToken()
      Returns:
      The name of unknown function or variable
    • getPosition

      public int getPosition()
      Returns:
      The position of unknown function or variable