| Modifier and Type | Class and Description |
|---|---|
| protected static class | JexlException.Cancel
Thrown to cancel a script execution. |
| public static class | JexlException.Method
Thrown when a method or ctor is unknown, ambiguous or inaccessible. |
| public static class | JexlException.Parsing
Thrown when parsing fails. |
| public static class | JexlException.Property
Thrown when a property is unknown. |
| protected static class | JexlException.Return
Thrown to return a value. |
| public static class | JexlException.Tokenization
Thrown when tokenization fails. |
| public static class | JexlException.Variable
Thrown when a variable is unknown. |
| Modifier and Type | Field and Description |
|---|---|
| protected final transient JexlInfo | info
The debug info. |
| protected final transient JexlNode | mark
The point of origin for this exception. |
| private static final int | MAX_EXCHARLOC
Maximum number of characters around exception location. |
| private static final int | MIN_EXCHARLOC
Minimum number of characters around exception location. |
| public static final String | NULL_OPERAND
A marker to use in NPEs stating a null operand error. |
| Access | Constructor and Description |
|---|---|
| public | JexlException(JexlNode
the node causing the error node, String the error message msg)Creates a new JexlException. |
| public | JexlException(JexlNode
the node causing the error node, String the error message msg, Throwable the exception causing the error cause)Creates a new JexlException. |
| public | JexlException(JexlInfo
the debugging information associated dbg, String the error message msg)Creates a new JexlException. |
| public | JexlException(JexlInfo
the debugging information associated dbg, String the error message msg, Throwable the exception causing the error cause)Creates a new JexlException. |
| Modifier and Type | Method and Description |
|---|---|
| protected String | |
| public String | Returns: a string representation of the offending expression, the empty string if it could not be determinedcharacter offset interval of the precise node triggering the error offsets)Gets information about the cause of this error. |
| public String | Returns: this error as a stringOverrides java. |
| protected String | Returns: the formatted messagethe prefix to the message prefix, String the expression in error expr)Formats an error message from the parser. |
| private static Throwable |
| info | back to summary |
|---|---|
| protected final transient JexlInfo info The debug info. | |
| mark | back to summary |
|---|---|
| protected final transient JexlNode mark The point of origin for this exception. | |
| MAX_EXCHARLOC | back to summary |
|---|---|
| private static final int MAX_EXCHARLOC Maximum number of characters around exception location. | |
| MIN_EXCHARLOC | back to summary |
|---|---|
| private static final int MIN_EXCHARLOC Minimum number of characters around exception location. | |
| NULL_OPERAND | back to summary |
|---|---|
| public static final String NULL_OPERAND A marker to use in NPEs stating a null operand error. | |
| JexlException | back to summary |
|---|---|
| public JexlException(JexlNode node, String msg) Creates a new JexlException. | |
| JexlException | back to summary |
|---|---|
| public JexlException(JexlNode node, String msg, Throwable cause) Creates a new JexlException. | |
| JexlException | back to summary |
|---|---|
| public JexlException(JexlInfo dbg, String msg) Creates a new JexlException. | |
| JexlException | back to summary |
|---|---|
| public JexlException(JexlInfo dbg, String msg, Throwable cause) Creates a new JexlException. | |
| detailedMessage | back to summary |
|---|---|
| protected String detailedMessage() Accesses detailed message.
| |
| getInfo | back to summary |
|---|---|
| public String getInfo(int[] offsets) Gets information about the cause of this error. The returned string represents the outermost expression in error. The info parameter, an int[2] optionally provided by the caller, will be filled with the begin/end offset characters of the precise error's trigger.
| |
| getMessage | back to summary |
|---|---|
| public String getMessage() Overrides java. Detailed info message about this error. Format is "debug![begin,end]: string \n msg" where: - debug is the debugging information if it exists (@link JexlEngine.setDebug) - begin, end are character offsets in the string for the precise location of the error - string is the string representation of the offending expression - msg is the actual explanation message for this error | |
| parserError | back to summary |
|---|---|
| protected String parserError(String prefix, String expr) Formats an error message from the parser. | |
| unwrap | back to summary |
|---|---|
| private static Throwable unwrap(Throwable xthrow) Unwraps the cause of a throwable due to reflection. | |
| Access | Constructor and Description |
|---|---|
| protected |
| Cancel | back to summary |
|---|---|
| protected Cancel(JexlNode node) Creates a new instance of Cancel.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String | detailedMessage()
Overrides org. |
| public String |
| Method | back to summary |
|---|---|
| public Method(JexlNode node, String name) Creates a new Method exception instance. | |
| detailedMessage | back to summary |
|---|---|
| protected String detailedMessage() Overrides org. Doc from org. Accesses detailed message. | |
| getMethod | back to summary |
|---|---|
public String getMethod()
| |
| Access | Constructor and Description |
|---|---|
| public | Parsing(JexlInfo
the offending ASTnode node, CharSequence the offending source expr, ParseException the javacc cause cause)Creates a new Variable exception instance. |
| Modifier and Type | Method and Description |
|---|---|
| protected String | detailedMessage()
Overrides org. |
| public String | |
| private static DebugInfo | Returns: the info to usethe node node, ParseException the cause cause)Merge the node info and the cause info to obtain best possible location. |
| Parsing | back to summary |
|---|---|
| public Parsing(JexlInfo node, CharSequence expr, ParseException cause) Creates a new Variable exception instance.
| |
| detailedMessage | back to summary |
|---|---|
| protected String detailedMessage() Overrides org. Doc from org. Accesses detailed message. | |
| getExpression | back to summary |
|---|---|
public String getExpression()
| |
| merge | back to summary |
|---|---|
| private static DebugInfo merge(JexlInfo node, ParseException cause) Merge the node info and the cause info to obtain best possible location.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String | detailedMessage()
Overrides org. |
| public String |
| Property | back to summary |
|---|---|
| public Property(JexlNode node, String var) Creates a new Property exception instance. | |
| detailedMessage | back to summary |
|---|---|
| protected String detailedMessage() Overrides org. Doc from org. Accesses detailed message. | |
| getProperty | back to summary |
|---|---|
public String getProperty()
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Object | result
The returned value. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public Object |
| result | back to summary |
|---|---|
| private final Object result The returned value. | |
| Return | back to summary |
|---|---|
| protected Return(JexlNode node, String msg, Object value) Creates a new instance of Return. | |
| getValue | back to summary |
|---|---|
public Object getValue()
| |
| Access | Constructor and Description |
|---|---|
| public | Tokenization(JexlInfo
the location info node, CharSequence the expression expr, TokenMgrError the javacc cause cause)Creates a new Tokenization exception instance. |
| Modifier and Type | Method and Description |
|---|---|
| protected String | detailedMessage()
Overrides org. |
| public String | |
| private static DebugInfo | Returns: the info to usethe node node, TokenMgrError the cause cause)Merge the node info and the cause info to obtain best possible location. |
| Tokenization | back to summary |
|---|---|
| public Tokenization(JexlInfo node, CharSequence expr, TokenMgrError cause) Creates a new Tokenization exception instance.
| |
| detailedMessage | back to summary |
|---|---|
| protected String detailedMessage() Overrides org. Doc from org. Accesses detailed message. | |
| getExpression | back to summary |
|---|---|
public String getExpression()
| |
| merge | back to summary |
|---|---|
| private static DebugInfo merge(JexlInfo node, TokenMgrError cause) Merge the node info and the cause info to obtain best possible location.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String | detailedMessage()
Overrides org. |
| public String |
| Variable | back to summary |
|---|---|
| public Variable(JexlNode node, String var) Creates a new Variable exception instance. | |
| detailedMessage | back to summary |
|---|---|
| protected String detailedMessage() Overrides org. Doc from org. Accesses detailed message. | |
| getVariable | back to summary |
|---|---|
public String getVariable()
| |