Package net.sf.saxon.event
Class NoOpenStartTagException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.xml.transform.TransformerException
net.sf.saxon.trans.XPathException
net.sf.saxon.event.NoOpenStartTagException
- All Implemented Interfaces:
Serializable
Exception indicating that an attribute or namespace node has been written when
there is no open element to write it to
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class net.sf.saxon.trans.XPathException
XPathException.Circularity, XPathException.StackOverflow
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NoOpenStartTagException
makeNoOpenStartTagException
(int nodeKind, String name, HostLanguage hostLanguage, boolean parentIsDocument, Location startElementLocationId) Static factory method to create the exceptionMethods 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
-
NoOpenStartTagException
-
-
Method Details
-
makeNoOpenStartTagException
public static NoOpenStartTagException makeNoOpenStartTagException(int nodeKind, String name, HostLanguage hostLanguage, boolean parentIsDocument, Location startElementLocationId) Static factory method to create the exception- Parameters:
nodeKind
- the kind of node being created (attribute or namespace)name
- the name of the node being createdhostLanguage
- XSLT or XQuery (error codes are different in the two cases)parentIsDocument
- true if the nodes are being added to a document node (rather than an element)startElementLocationId
- integer that can be passed to the location provider to get the location of the offending instruction that created the element node- Returns:
- the constructed exception object
-