public class JexlException extends RuntimeException
Modifier and Type | Class and Description |
---|---|
static class |
JexlException.Ambiguous
Thrown when parsing fails due to an ambiguous statement.
|
static class |
JexlException.Assignment
Thrown when parsing fails due to an invalid assigment.
|
static class |
JexlException.Break
Thrown to break a loop.
|
static class |
JexlException.Cancel
Thrown to cancel a script execution.
|
static class |
JexlException.Continue
Thrown to continue a loop.
|
static class |
JexlException.Method
Thrown when a method or ctor is unknown, ambiguous or inaccessible.
|
static class |
JexlException.Operator
Thrown when an operator fails.
|
static class |
JexlException.Parsing
Thrown when parsing fails.
|
static class |
JexlException.Property
Thrown when a property is unknown.
|
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.
|
Constructor and Description |
---|
JexlException(JexlInfo jinfo,
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 |
---|---|
JexlException |
clean()
Cleans a JexlException from any org.apache.commons.jexl3.internal stack trace element.
|
protected String |
detailedMessage()
Accesses detailed message.
|
JexlInfo |
getInfo()
Gets the specific information for this exception.
|
static JexlInfo |
getInfo(JexlNode node,
JexlInfo info)
Gets the most specific information attached to a node.
|
String |
getMessage()
Detailed info message about this error.
|
static String |
methodError(JexlNode node,
String method)
Generates a message for a unsolvable method error.
|
static String |
operatorError(JexlNode node,
String symbol)
Generates a message for an operator error.
|
protected String |
parserError(String prefix,
String expr)
Formats an error message from the parser.
|
static String |
propertyError(JexlNode node,
String var)
Generates a message for an unsolvable property error.
|
static String |
variableError(JexlNode node,
String variable,
boolean undef)
Generates a message for a variable error.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
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 JexlInfo getInfo()
public static JexlInfo getInfo(JexlNode node, JexlInfo info)
node
- the nodeinfo
- the informationpublic JexlException clean()
protected String detailedMessage()
protected String parserError(String prefix, String expr)
prefix
- the prefix to the messageexpr
- the expression in errorpublic static String variableError(JexlNode node, String variable, boolean undef)
node
- the node where the error occurredvariable
- the variableundef
- whether the variable is null or undefinedpublic static String propertyError(JexlNode node, String var)
node
- the node where the error occurredvar
- the variablepublic static String methodError(JexlNode node, String method)
node
- the node where the error occurredmethod
- the method namepublic static String operatorError(JexlNode node, String symbol)
node
- the node where the error occurredsymbol
- the operator namepublic String getMessage()
getMessage
in class Throwable
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.