Package org.apache.commons.jexl3
Class JexlException.Method
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.commons.jexl3.JexlException
-
- org.apache.commons.jexl3.JexlException.Method
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- JexlException
public static class JexlException.Method extends JexlException
Thrown when a method or ctor is unknown, ambiguous or inaccessible.- Since:
- 3.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.commons.jexl3.JexlException
JexlException.Ambiguous, JexlException.Annotation, JexlException.Assignment, JexlException.Break, JexlException.Cancel, JexlException.Continue, JexlException.Feature, JexlException.Method, JexlException.Operator, JexlException.Parsing, JexlException.Property, JexlException.Return, JexlException.StackOverflow, JexlException.Throw, JexlException.Tokenization, JexlException.TryFailed, JexlException.Variable, JexlException.VariableIssue
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description Method(JexlInfo info, java.lang.String name, java.lang.Object[] args)
Creates a new Method exception instance.Method(JexlInfo info, java.lang.String name, java.lang.Object[] args, java.lang.Throwable cause)
Creates a new Method exception instance.Method(JexlInfo info, java.lang.String name, java.lang.Throwable cause)
Deprecated.as of 3.2, use call with method argumentsMethod(JexlNode node, java.lang.String name)
Deprecated.as of 3.2, use call with method argumentsMethod(JexlNode node, java.lang.String name, java.lang.Object[] args)
Creates a new Method exception instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
detailedMessage()
Accesses detailed message.java.lang.String
getMethod()
java.lang.String
getMethodSignature()
-
Methods inherited from class org.apache.commons.jexl3.JexlException
annotationError, clean, clean, detailedInfo, errorAt, getDetail, getInfo, getInfo, getMessage, info, merge, methodError, methodError, methodSignature, operatorError, parserError, propertyError, propertyError, sliceSource, tryFailed, unwrap, variableError, variableError
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Method
public Method(JexlInfo info, java.lang.String name, java.lang.Object[] args)
Creates a new Method exception instance.- Parameters:
info
- the location informationname
- the method nameargs
- the method arguments- Since:
- 3.2
-
Method
public Method(JexlInfo info, java.lang.String name, java.lang.Object[] args, java.lang.Throwable cause)
Creates a new Method exception instance.- Parameters:
info
- the location informationname
- the method namecause
- the exception causing the errorargs
- the method arguments- Since:
- 3.2
-
Method
@Deprecated public Method(JexlInfo info, java.lang.String name, java.lang.Throwable cause)
Deprecated.as of 3.2, use call with method argumentsCreates a new Method exception instance.- Parameters:
info
- the location informationname
- the unknown methodcause
- the exception causing the error
-
Method
@Deprecated public Method(JexlNode node, java.lang.String name)
Deprecated.as of 3.2, use call with method argumentsCreates a new Method exception instance.- Parameters:
node
- the offending ASTnodename
- the method name
-
Method
public Method(JexlNode node, java.lang.String name, java.lang.Object[] args)
Creates a new Method exception instance.- Parameters:
node
- the offending ASTnodename
- the method nameargs
- the method arguments- Since:
- 3.2
-
-
Method Detail
-
detailedMessage
protected java.lang.String detailedMessage()
Description copied from class:JexlException
Accesses detailed message.- Overrides:
detailedMessage
in classJexlException
- Returns:
- the message
-
getMethod
public java.lang.String getMethod()
- Returns:
- the method name
-
getMethodSignature
public java.lang.String getMethodSignature()
- Returns:
- the method signature
- Since:
- 3.2
-
-