Class JexlException.Variable
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.commons.jexl3.JexlException
org.apache.commons.jexl3.JexlException.Variable
- All Implemented Interfaces:
Serializable
- Enclosing class:
JexlException
Thrown when a variable is unknown.
- Since:
- 3.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class JexlException
JexlException.Ambiguous, JexlException.Annotation, JexlException.Assignment, JexlException.Break, JexlException.Cancel, JexlException.Continue, JexlException.Feature, JexlException.Method, JexlException.Operator, JexlException.Parsing, JexlException.Property, JexlException.Return, JexlException.StackOverflow, JexlException.Throw, JexlException.Tokenization, JexlException.TryFailed, JexlException.Variable, JexlException.VariableIssue -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new Variable exception instance.Variable(org.apache.commons.jexl3.parser.JexlNode node, String var, JexlException.VariableIssue vi) Creates a new Variable exception instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringAccesses detailed message.Gets the variable namebooleanTests whether the variable causing an error is undefined or evaluated as null.Methods inherited from class JexlException
annotationError, clean, getDetail, getInfo, getInfo, getMessage, info, methodError, methodError, operatorError, parserError, propertyError, propertyError, sliceSource, tryFailed, variableError, variableErrorMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
Variable
-
Variable
public Variable(org.apache.commons.jexl3.parser.JexlNode node, String var, JexlException.VariableIssue vi) Creates a new Variable exception instance.- Parameters:
node- the offending ASTnodevar- the unknown variablevi- the variable issue
-
-
Method Details
-
detailedMessage
Description copied from class:JexlExceptionAccesses detailed message.- Overrides:
detailedMessagein classJexlException- Returns:
- the message
-
getVariable
-
isUndefined
Tests whether the variable causing an error is undefined or evaluated as null.- Returns:
- true if undefined, false otherwise
-