Package net.sf.saxon.expr.sort
Class ComparisonException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.ClassCastException
net.sf.saxon.expr.sort.ComparisonException
- All Implemented Interfaces:
Serializable
A
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.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ComparisonException
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-
getReason
-