com.novell.xsl.extensions
Class BadFunction
java.lang.Object
com.novell.xml.xpath.Function
com.novell.xsl.extensions.BadFunction
- public class BadFunction
- extends Function
This class exists to implement "lazy" error reporting for
extension functions. If an extension function can't be found
for an expression, the function is replaced with an instance
of this class, which will throw an exception if it is ever
invoke.
Constructor Summary |
BadFunction(String message)
Construct a bad function with the passed message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BadFunction
public BadFunction(String message)
- Construct a bad function with the passed message.
- Parameters:
message
- The exception message to use if this function is invoked.
invoke
public ExpressionValue invoke(Object[] args)
throws XPathEvaluationException
- Invoke the function using the passed list of arguments.
This simply throws an exception with the passed message
- Overrides:
invoke
in class Function
- Parameters:
args
- List of arguments.
- Returns:
- An object containing the result of the function invocation.
- Throws:
XPathEvaluationException