When using the Tokenizer, an UnknownFunctionOrVariableException is thrown if the expression contains a function name or variable name that has not been defined or recognized. This exception extends IllegalArgumentException and provides metadata to help locate the error in the input string.
To debug the error, you can use the following methods on the exception instance:
getExpression(): Returns the full expression string that caused the error.getToken(): Returns the specific name of the unknown function or variable.getPosition(): Returns the zero-based starting index of the unknown token within the expression.