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:
java.io.Serializable
- Enclosing class:
- JexlException
public static class JexlException.Property extends JexlException
Thrown when a property 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 static longserialVersionUIDprivate booleanundefinedUndefined variable flag.
-
Constructor Summary
Constructors Constructor Description Property(JexlNode node, java.lang.String pty)Deprecated.3.2Property(JexlNode node, java.lang.String pty, boolean undef, java.lang.Throwable cause)Creates a new Property exception instance.Property(JexlNode node, java.lang.String pty, java.lang.Throwable cause)Deprecated.3.2
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringdetailedMessage()Accesses detailed message.java.lang.StringgetProperty()Gets the property namebooleanisUndefined()Tests 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
-
undefined
private final boolean undefined
Undefined variable flag.
-
-
Constructor Detail
-
Property
@Deprecated public Property(JexlNode node, java.lang.String pty)
Deprecated.3.2Creates a new Property exception instance.- Parameters:
node- the offending ASTnodepty- the unknown property
-
Property
public Property(JexlNode node, java.lang.String pty, boolean undef, java.lang.Throwable cause)
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 public Property(JexlNode node, java.lang.String pty, java.lang.Throwable cause)
Deprecated.3.2Creates a new Property exception instance.- Parameters:
node- the offending ASTnodepty- the unknown propertycause- the exception causing the error
-
-
Method Detail
-
detailedMessage
protected java.lang.String detailedMessage()
Description copied from class:JexlExceptionAccesses detailed message.- Overrides:
detailedMessagein classJexlException- Returns:
- the message
-
getProperty
public java.lang.String getProperty()
Gets the property name- Returns:
- the property name
-
isUndefined
public boolean isUndefined()
Tests whether the variable causing an error is undefined or evaluated as null.- Returns:
- true if undefined, false otherwise
-
-