Package net.sf.saxon.trans
Class UncheckedXPathException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- net.sf.saxon.trans.UncheckedXPathException
-
- All Implemented Interfaces:
Serializable
public class UncheckedXPathException extends RuntimeException
When implementing certain interfaces Saxon is not able to throw a checked exception because the interface definition does not allow it. In these circumstances the checked exception is wrapped in an unchecked exception, which is thrown in its place. The intent is that the unchecked exception will be caught and "unwrapped" before the calling application gets to see it.User-written callback functions (such as
ErrorReporter
may also throw anUncheckedXPathException
; this will generally cause the query or transformation to be aborted.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UncheckedXPathException(String message)
UncheckedXPathException(Throwable cause)
UncheckedXPathException(XPathException cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
XPathException
getXPathException()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
UncheckedXPathException
public UncheckedXPathException(XPathException cause)
-
UncheckedXPathException
public UncheckedXPathException(String message)
-
UncheckedXPathException
public UncheckedXPathException(Throwable cause)
-
-
Method Detail
-
getXPathException
public XPathException getXPathException()
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
-