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 reason)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMessage()
XPathException
getReason()
-
-
-
Constructor Detail
-
ComparisonException
public ComparisonException(XPathException reason)
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
getReason
public XPathException getReason()
-
-