Class UnknownFunctionOrVariableException

  • All Implemented Interfaces:
    java.io.Serializable

    public class UnknownFunctionOrVariableException
    extends java.lang.IllegalArgumentException
    This exception is being thrown whenever Tokenizer finds unknown function or variable.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getExpression()  
      java.lang.String getMessage()  
      int getPosition()  
      java.lang.String getToken()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
    • Constructor Detail

      • UnknownFunctionOrVariableException

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

      • getMessage

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

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

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

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