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:
java.io.Serializable
public class ComparisonException extends java.lang.ClassCastException
AComparisonException
is aClassCastException
that encapsulates anXPathException
. It is used because thecompareTo
method is defined to returnClassCastException
when values are not comparable; using aClassCastException
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
-
-
Constructor Summary
Constructors Constructor Description ComparisonException(XPathException cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XPathException
getCause()
java.lang.String
getMessage()
-
-
-
Constructor Detail
-
ComparisonException
public ComparisonException(XPathException cause)
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
getCause
public XPathException getCause()
- Overrides:
getCause
in classjava.lang.Throwable
-
-