XPathExpressionException

  • XPathExpressionException signals an error within an XPath expression.

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

  • This exception inherits methods for stack trace handling and cause analysis from XPathException and Throwable.

  • XPathFunctionException is a direct subclass, specifically addressing errors related to XPath functions.

public class XPathExpressionException extends XPathException
Known Direct Subclasses

XPathExpressionException represents an error in an XPath expression.

Public Constructor Summary

XPathExpressionException(String message)

Constructs a new XPathExpressionException with the specified detail message.

XPathExpressionException(Throwable cause)

Constructs a new XPathExpressionException with the specified cause.

Inherited Method Summary

Public Constructors

public XPathExpressionException (String message)

Constructs a new XPathExpressionException 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 XPathExpressionException (Throwable cause)

Constructs a new XPathExpressionException with the specified cause.

If cause is null, then a NullPointerException is thrown.

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