Package org.apache.commons.jexl3
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:
java.io.Serializable
- Enclosing class:
- JexlException
public static class JexlException.Variable extends JexlException
Thrown when a variable is unknown.- Since:
- 3.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.commons.jexl3.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
-
-
Field Summary
Fields Modifier and Type Field Description private JexlException.VariableIssue
issue
Undefined variable flag.private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description Variable(JexlNode node, java.lang.String var, boolean undef)
Creates a new Variable exception instance.Variable(JexlNode node, java.lang.String var, JexlException.VariableIssue vi)
Creates a new Variable exception instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
detailedMessage()
Accesses detailed message.java.lang.String
getVariable()
boolean
isUndefined()
Whether the variable causing an error is undefined or evaluated as null.-
Methods inherited from class org.apache.commons.jexl3.JexlException
annotationError, clean, clean, detailedInfo, errorAt, getDetail, getInfo, getInfo, getMessage, info, merge, methodError, methodError, methodSignature, operatorError, parserError, propertyError, propertyError, sliceSource, tryFailed, unwrap, variableError, variableError
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
issue
private final JexlException.VariableIssue issue
Undefined variable flag.
-
-
Constructor Detail
-
Variable
public Variable(JexlNode node, java.lang.String var, boolean undef)
Creates a new Variable exception instance.- Parameters:
node
- the offending ASTnodevar
- the unknown variableundef
- whether the variable is undefined or evaluated as null
-
Variable
public Variable(JexlNode node, java.lang.String var, JexlException.VariableIssue vi)
Creates a new Variable exception instance.- Parameters:
node
- the offending ASTnodevar
- the unknown variablevi
- the variable issue
-
-
Method Detail
-
detailedMessage
protected java.lang.String detailedMessage()
Description copied from class:JexlException
Accesses detailed message.- Overrides:
detailedMessage
in classJexlException
- Returns:
- the message
-
getVariable
public java.lang.String getVariable()
- Returns:
- the variable name
-
isUndefined
public boolean isUndefined()
Whether the variable causing an error is undefined or evaluated as null.- Returns:
- true if undefined, false otherwise
-
-