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:
java.io.Serializable
public class QuitParsingException extends XPathException
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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.sf.saxon.trans.XPathException
XPathException.Circularity, XPathException.StackOverflow
-
-
Constructor Summary
Constructors Constructor Description QuitParsingException(boolean notifiedByConsumer)
Create a QuitParsingException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isNotifiedByConsumer()
-
Methods inherited from class net.sf.saxon.trans.XPathException
asStaticError, asTypeError, asTypeErrorIf, fromXmlProcessingError, getErrorCodeQName, getErrorObject, getFailingExpression, getHostLanguage, getLocator, getMessage, 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
-
-
-
-
Constructor Detail
-
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.
-
-