public static class JexlException.Variable extends 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.Tokenization, JexlException.TryFailed, JexlException.Variable, JexlException.VariableIssue
Constructor and Description |
---|
Variable(org.apache.commons.jexl3.parser.JexlNode node,
String var,
boolean undef)
Creates a new Variable exception instance.
|
Variable(org.apache.commons.jexl3.parser.JexlNode node,
String var,
JexlException.VariableIssue vi)
Creates a new Variable exception instance.
|
Modifier and Type | Method and Description |
---|---|
protected String |
detailedMessage()
Accesses detailed message.
|
String |
getVariable() |
boolean |
isUndefined()
Whether the variable causing an error is undefined or evaluated as null.
|
annotationError, clean, getDetail, getInfo, getInfo, getMessage, info, methodError, methodError, operatorError, parserError, propertyError, propertyError, sliceSource, tryFailed, variableError, variableError
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public Variable(org.apache.commons.jexl3.parser.JexlNode node, String var, JexlException.VariableIssue vi)
node
- the offending ASTnodevar
- the unknown variablevi
- the variable issuepublic boolean isUndefined()
public String getVariable()
protected String detailedMessage()
JexlException
detailedMessage
in class JexlException
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.