|
||||||||||
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.
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 | |
---|---|
String |
getInfo(int[] offsets)
Gets information about the cause of this error. |
String |
getMessage()
Detailed info message about this error. |
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 JexlNode mark
protected final JexlInfo info
public static final String NULL_OPERAND
Constructor Detail |
---|
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 messagepublic JexlException(JexlInfo dbg, String msg, Throwable cause)
dbg
- the debugging information associatedmsg
- the error messagecause
- the exception causing the errorMethod Detail |
---|
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 |