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.ClassCastExceptionAComparisonExceptionis aClassCastExceptionthat encapsulates anXPathException. It is used because thecompareTomethod is defined to returnClassCastExceptionwhen values are not comparable; using aClassCastExceptionthat 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 XPathExceptiongetCause()java.lang.StringgetMessage()
-
-
-
Constructor Detail
-
ComparisonException
public ComparisonException(XPathException cause)
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
getCause
public XPathException getCause()
- Overrides:
getCausein classjava.lang.Throwable
-
-