XPathFunctionException

  • XPathFunctionException signals errors specifically related to XPath functions.

  • It provides constructors to initialize with either a detailed message or a throwable cause.

  • This exception inherits methods from XPathExpressionException, XPathException, Throwable, and Object for handling and inspecting the error.

  • Constructors require non-null message and cause values, throwing NullPointerException otherwise.

public class XPathFunctionException extends XPathExpressionException

XPathFunctionException represents an error with an XPath function.

Public Constructor Summary

XPathFunctionException(String message)

Constructs a new XPathFunctionException with the specified detail message.

XPathFunctionException(Throwable cause)

Constructs a new XPathFunctionException with the specified cause.

Inherited Method Summary

Public Constructors

public XPathFunctionException (String message)

Constructs a new XPathFunctionException with the specified detail message.

The cause is not initialized.

If message is null, then a NullPointerException is thrown.

Parameters
message The detail message.

public XPathFunctionException (Throwable cause)

Constructs a new XPathFunctionException with the specified cause.

If cause is null, then a NullPointerException is thrown.

Parameters
cause The cause.
Throws
NullPointerException if cause is null.