public class ComparisonException extends ClassCastException
ComparisonException is a ClassCastException that
encapsulates an XPathException. It is used because the compareTo
method is defined to return ClassCastException when values are not comparable;
using a ClassCastException that encapsulates XPath error information enables
us to return the correct error code, and to distinguish dynamic errors from type errors.| Modifier and Type | Field and Description |
|---|---|
(package private) XPathException |
cause |
| Constructor and Description |
|---|
ComparisonException(XPathException cause) |
| Modifier and Type | Method and Description |
|---|---|
XPathException |
getCause() |
String |
getMessage() |
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringXPathException cause
public ComparisonException(XPathException cause)
public String getMessage()
getMessage in class Throwablepublic XPathException getCause()