Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Method Summary
`ExpressionValue` | `invoke(Object[] args)` Invoke the function using the passed list of arguments.

Methods inherited from class com.novell.xml.xpath.Function
`getInstance, getSignature, isConstant, registerForReset`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### 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.

Method Detail

### 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`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD