Package net.sf.saxon.trans
Class QuitParsingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.xml.transform.TransformerException
net.sf.saxon.trans.XPathException
net.sf.saxon.trans.QuitParsingException
- All Implemented Interfaces:
Serializable
An exception used to signal that no more input is required from the parser, and that
parsing can therefore be abandoned early (but without signaling any error to the user)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class net.sf.saxon.trans.XPathException
XPathException.Circularity, XPathException.StackOverflow
-
Constructor Summary
ConstructorsConstructorDescriptionQuitParsingException
(boolean notifiedByConsumer) Create a QuitParsingException -
Method Summary
Methods inherited from class net.sf.saxon.trans.XPathException
asStaticError, asTypeError, asTypeErrorIf, fromXmlProcessingError, getErrorCodeQName, getErrorObject, getFailingExpression, getHostLanguage, getLocator, getXPathContext, hasBeenReported, hasErrorCode, isGlobalError, isReportableStatically, isStaticError, isSyntaxError, isTypeError, makeXPathException, maybeSetContext, maybeSetErrorCode, maybeSetLocation, maybeWithContext, maybeWithErrorCode, maybeWithFailingExpression, maybeWithLocation, replacingErrorCode, setErrorCode, setErrorCodeQName, setErrorObject, setHasBeenReported, setHostLanguage, setHostLanguage, setIsGlobalError, setIsStaticError, setIsSyntaxError, setIsTypeError, setLocation, setXPathContext, showErrorCode, withErrorCode, withErrorCode, withFailingExpression, withLocation, withMessage, withXPathContext
Methods inherited from class javax.xml.transform.TransformerException
getCause, getException, getLocationAsString, getMessageAndLocation, initCause, printStackTrace, printStackTrace, printStackTrace, setLocator
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, setStackTrace, toString
-
Constructor Details
-
QuitParsingException
public QuitParsingException(boolean notifiedByConsumer) Create a QuitParsingException- Parameters:
notifiedByConsumer
- should be set to true if the exception was generating in the parsing thread in response to an interrupt from the consuming thread; in this case there is no need for the consuming thread to be notified of the termination (by sending a "stopper" item); and indeed, doing so causes the thread to hang. See bug 3080.
-
-
Method Details
-
isNotifiedByConsumer
public boolean isNotifiedByConsumer()
-