Package org.apache.commons.jexl3
Class JexlException.Property
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.commons.jexl3.JexlException
org.apache.commons.jexl3.JexlException.Property
- All Implemented Interfaces:
Serializable
- Enclosing class:
JexlException
Thrown when a property is unknown.
- Since:
- 3.0
- See Also:
-
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
FieldsModifier and TypeFieldDescriptionprivate static final long
private final boolean
Undefined variable flag. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Accesses detailed message.boolean
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
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
undefined
private final boolean undefinedUndefined variable flag.
-
-
Constructor Details
-
Property
Deprecated.3.2Creates a new Property exception instance.- Parameters:
node
- the offending ASTnodepty
- the unknown property
-
Property
Creates a new Property exception instance.- Parameters:
node
- the offending ASTnodepty
- the unknown propertyundef
- whether the variable is null or undefinedcause
- the exception causing the error
-
Property
Deprecated.3.2Creates a new Property exception instance.- Parameters:
node
- the offending ASTnodepty
- the unknown propertycause
- the exception causing the error
-
-
Method Details
-
detailedMessage
Description copied from class:JexlException
Accesses detailed message.- Overrides:
detailedMessage
in classJexlException
- Returns:
- the message
-
getProperty
- Returns:
- the property name
-
isUndefined
public boolean isUndefined()Whether the variable causing an error is undefined or evaluated as null.- Returns:
- true if undefined, false otherwise
-