Class ComparisonException

  • All Implemented Interfaces:
    Serializable

    public class ComparisonException
    extends ClassCastException
    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:
    Serialized Form