|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.commons.jexl2.JexlException
public class JexlException
Wraps any error that might occur during interpretation of a script or expression.
| Nested Class Summary | |
|---|---|
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. |
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final transient JexlNode mark
protected final transient JexlInfo info
public static final String NULL_OPERAND
| Constructor Detail |
|---|
public JexlException(JexlNode node,
String msg)
node - the node causing the errormsg - the error message
public JexlException(JexlNode node,
String msg,
Throwable cause)
node - the node causing the errormsg - the error messagecause - the exception causing the error
public JexlException(JexlInfo dbg,
String msg)
dbg - the debugging information associatedmsg - the error message
public JexlException(JexlInfo dbg,
String msg,
Throwable cause)
dbg - the debugging information associatedmsg - the error messagecause - the exception causing the error| Method Detail |
|---|
protected String detailedMessage()
protected String parserError(String prefix,
String expr)
prefix - the prefix to the messageexpr - the expression in error
public 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 error
public String getMessage()
getMessage in class Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||