public class JexlException extends RuntimeException
| Modifier and Type | Class and Description | 
|---|---|
| static class  | JexlException.AmbiguousThrown when parsing fails due to an ambiguous statement. | 
| static class  | JexlException.AnnotationThrown when an annotation handler throws an exception. | 
| static class  | JexlException.AssignmentThrown when parsing fails due to an invalid assigment. | 
| static class  | JexlException.BreakThrown to break a loop. | 
| static class  | JexlException.CancelThrown to cancel a script execution. | 
| static class  | JexlException.ContinueThrown to continue a loop. | 
| static class  | JexlException.FeatureThrown when parsing fails due to a disallowed feature. | 
| static class  | JexlException.MethodThrown when a method or ctor is unknown, ambiguous or inaccessible. | 
| static class  | JexlException.OperatorThrown when an operator fails. | 
| static class  | JexlException.ParsingThrown when parsing fails. | 
| static class  | JexlException.PropertyThrown when a property is unknown. | 
| static class  | JexlException.ReturnThrown to return a value. | 
| static class  | JexlException.StackOverflowThrown when reaching stack-overflow. | 
| static class  | JexlException.TokenizationThrown when tokenization fails. | 
| static class  | JexlException.TryFailedThrown when method/ctor invocation fails. | 
| static class  | JexlException.VariableThrown when a variable is unknown. | 
| static class  | JexlException.VariableIssueThe various type of variable issues. | 
| Constructor and Description | 
|---|
| JexlException(JexlInfo jinfo,
             String msg,
             Throwable cause)Creates a new JexlException. | 
| JexlException(org.apache.commons.jexl3.parser.JexlNode node,
             String msg)Creates a new JexlException. | 
| JexlException(org.apache.commons.jexl3.parser.JexlNode node,
             String msg,
             Throwable cause)Creates a new JexlException. | 
| Modifier and Type | Method and Description | 
|---|---|
| static String | annotationError(org.apache.commons.jexl3.parser.JexlNode node,
               String annotation)Generates a message for an annotation error. | 
| JexlException | clean()Cleans a JexlException from any org.apache.commons.jexl3.internal stack trace element. | 
| String | getDetail() | 
| JexlInfo | getInfo()Gets the specific information for this exception. | 
| static JexlInfo | getInfo(org.apache.commons.jexl3.parser.JexlNode node,
       JexlInfo info)Deprecated. 
 3.2 | 
| String | getMessage()Detailed info message about this error. | 
| static String | methodError(org.apache.commons.jexl3.parser.JexlNode node,
           String method)Deprecated. 
 3.2 | 
| static String | methodError(org.apache.commons.jexl3.parser.JexlNode node,
           String method,
           Object[] args)Generates a message for a unsolvable method error. | 
| static String | operatorError(org.apache.commons.jexl3.parser.JexlNode node,
             String symbol)Generates a message for an operator error. | 
| static String | propertyError(org.apache.commons.jexl3.parser.JexlNode node,
             String var)Deprecated. 
 3.2 | 
| static String | propertyError(org.apache.commons.jexl3.parser.JexlNode node,
             String pty,
             boolean undef)Generates a message for an unsolvable property error. | 
| static String | sliceSource(String src,
           int froml,
           int fromc,
           int tol,
           int toc)Removes a slice from a source. | 
| static JexlException | tryFailed(InvocationTargetException xinvoke)Wrap an invocation exception. | 
| static String | variableError(org.apache.commons.jexl3.parser.JexlNode node,
             String variable,
             boolean undef)Deprecated. 
 3.2 | 
| static String | variableError(org.apache.commons.jexl3.parser.JexlNode node,
             String variable,
             JexlException.VariableIssue issue)Generates a message for a variable error. | 
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic JexlException(org.apache.commons.jexl3.parser.JexlNode node,
                     String msg)
node - the node causing the errormsg - the error messagepublic JexlException(org.apache.commons.jexl3.parser.JexlNode node,
                     String msg,
                     Throwable cause)
node - the node causing the errormsg - the error messagecause - the exception causing the errorpublic JexlInfo getInfo()
@Deprecated public static JexlInfo getInfo(org.apache.commons.jexl3.parser.JexlNode node, JexlInfo info)
node - the nodeinfo - the informationpublic JexlException clean()
public final String getDetail()
public static String sliceSource(String src, int froml, int fromc, int tol, int toc)
src - the sourcefroml - the begin linefromc - the begin columntol - the to linetoc - the to column@Deprecated public static String variableError(org.apache.commons.jexl3.parser.JexlNode node, String variable, boolean undef)
node - the node where the error occurredvariable - the variableundef - whether the variable is null or undefinedpublic static String variableError(org.apache.commons.jexl3.parser.JexlNode node, String variable, JexlException.VariableIssue issue)
node - the node where the error occurredvariable - the variableissue - the variable kind of issuepublic static String propertyError(org.apache.commons.jexl3.parser.JexlNode node, String pty, boolean undef)
node - the node where the error occurredpty - the propertyundef - whether the property is null or undefined@Deprecated public static String propertyError(org.apache.commons.jexl3.parser.JexlNode node, String var)
node - the node where the error occurredvar - the variable@Deprecated public static String methodError(org.apache.commons.jexl3.parser.JexlNode node, String method)
node - the node where the error occurredmethod - the method namepublic static String methodError(org.apache.commons.jexl3.parser.JexlNode node, String method, Object[] args)
node - the node where the error occurredmethod - the method nameargs - the method argumentspublic static String operatorError(org.apache.commons.jexl3.parser.JexlNode node, String symbol)
node - the node where the error occurredsymbol - the operator namepublic static String annotationError(org.apache.commons.jexl3.parser.JexlNode node, String annotation)
node - the node where the error occurredannotation - the annotation namepublic static JexlException tryFailed(InvocationTargetException xinvoke)
Return the cause if it is already a JexlException.
xinvoke - the invocation exceptionpublic String getMessage()
getMessage in class ThrowableCopyright © 2001–2021 The Apache Software Foundation. All rights reserved.