Package net.objecthunter.exp4j.tokenizer
Class UnknownFunctionOrVariableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
net.objecthunter.exp4j.tokenizer.UnknownFunctionOrVariableException
- All Implemented Interfaces:
Serializable
This exception is being thrown whenever
Tokenizer
finds unknown function or variable.- Author:
- Bartosz Firyn (sarxos)
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnknownFunctionOrVariableException
- Parameters:
exp
- expression that throwed the exceptionposition
- location of the errorlength
- length of the token
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
-
getExpression
- Returns:
- Expression which contains unknown function or variable
-
getToken
- Returns:
- The name of unknown function or variable
-
getPosition
public int getPosition()- Returns:
- The position of unknown function or variable
-