public class JexlException extends RuntimeException
| Modifier and Type | Class and 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 and Description |
|---|---|
protected JexlInfo |
info
The debug info.
|
protected JexlNode |
mark
The point of origin for this exception.
|
static String |
NULL_OPERAND
A marker to use in NPEs stating a null operand error.
|
| Constructor and Description |
|---|
JexlException(JexlInfo dbg,
String msg)
Creates a new JexlException.
|
JexlException(JexlInfo dbg,
String msg,
Throwable cause)
Creates a new JexlException.
|
JexlException(JexlNode node,
String msg)
Creates a new JexlException.
|
JexlException(JexlNode node,
String msg,
Throwable cause)
Creates a new JexlException.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
detailedMessage()
Accesses detailed message.
|
String |
getInfo(int[] offsets)
Gets information about the cause of this error.
|
String |
getMessage()
Detailed info message about this error.
|
protected String |
parserError(String prefix,
String expr)
Formats an error message from the parser.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected final transient JexlNode mark
protected final transient JexlInfo info
public static final String NULL_OPERAND
public JexlException(JexlNode node, String msg)
node - the node causing the errormsg - the error messagepublic JexlException(JexlNode node, String msg, Throwable cause)
node - the node causing the errormsg - the error messagecause - the exception causing the errorpublic JexlException(JexlInfo dbg, String msg)
dbg - the debugging information associatedmsg - the error messageprotected String detailedMessage()
protected String parserError(String prefix, String expr)
prefix - the prefix to the messageexpr - the expression in errorpublic 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 String getMessage()
getMessage in class ThrowableCopyright © 2020 Internet2. All rights reserved.