JexlException.Cancel
, JexlException.Method
, JexlException.Parsing
, JexlException.Property
, JexlException.Return
, JexlException.Tokenization
, JexlException.Variable
public class JexlException extends java.lang.RuntimeException
Modifier and Type | Class | Description |
---|---|---|
protected static class |
JexlException.Cancel |
Thrown to cancel a script execution.
|
static class |
JexlException.Method |
Thrown when a method or ctor is unknown, ambiguous or inaccessible.
|
static class |
JexlException.Parsing |
Thrown when parsing fails.
|
static class |
JexlException.Property |
Thrown when a property is unknown.
|
protected static class |
JexlException.Return |
Thrown to return a value.
|
static class |
JexlException.Tokenization |
Thrown when tokenization fails.
|
static class |
JexlException.Variable |
Thrown when a variable is unknown.
|
Modifier and Type | Field | Description |
---|---|---|
protected JexlInfo |
info |
The debug info.
|
protected JexlNode |
mark |
The point of origin for this exception.
|
static java.lang.String |
NULL_OPERAND |
A marker to use in NPEs stating a null operand error.
|
Constructor | Description |
---|---|
JexlException(JexlInfo dbg,
java.lang.String msg) |
Creates a new JexlException.
|
JexlException(JexlInfo dbg,
java.lang.String msg,
java.lang.Throwable cause) |
Creates a new JexlException.
|
JexlException(JexlNode node,
java.lang.String msg) |
Creates a new JexlException.
|
JexlException(JexlNode node,
java.lang.String msg,
java.lang.Throwable cause) |
Creates a new JexlException.
|
Modifier and Type | Method | Description |
---|---|---|
protected java.lang.String |
detailedMessage() |
Accesses detailed message.
|
java.lang.String |
getInfo(int[] offsets) |
Gets information about the cause of this error.
|
java.lang.String |
getMessage() |
Detailed info message about this error.
|
protected java.lang.String |
parserError(java.lang.String prefix,
java.lang.String expr) |
Formats an error message from the parser.
|
public static final java.lang.String NULL_OPERAND
public JexlException(JexlNode node, java.lang.String msg)
node
- the node causing the errormsg
- the error messagepublic JexlException(JexlNode node, java.lang.String msg, java.lang.Throwable cause)
node
- the node causing the errormsg
- the error messagecause
- the exception causing the errorpublic JexlException(JexlInfo dbg, java.lang.String msg)
dbg
- the debugging information associatedmsg
- the error messagepublic JexlException(JexlInfo dbg, java.lang.String msg, java.lang.Throwable cause)
dbg
- the debugging information associatedmsg
- the error messagecause
- the exception causing the errorprotected java.lang.String detailedMessage()
protected java.lang.String parserError(java.lang.String prefix, java.lang.String expr)
prefix
- the prefix to the messageexpr
- the expression in errorpublic java.lang.String getInfo(int[] offsets)
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.
offsets
- character offset interval of the precise node triggering the errorpublic java.lang.String getMessage()
getMessage
in class java.lang.Throwable