/** * Receive notification of the end of a document */ public void endDocument () throws SAXException { // System.err.println("RCH: end document"); try { flush(); receiver.endDocument(); receiver.close(); } catch (ValidationException err) { err.setLocator(locator); throw new SAXException(err); } catch (XPathException err) { throw new SAXException(err); } }
/** * Receive notification of the end of a document */ public void endDocument () throws SAXException { // System.err.println("RCH: end document"); try { flush(); receiver.endDocument(); receiver.close(); } catch (ValidationException err) { err.setLocator(locator); throw new SAXException(err); } catch (XPathException err) { throw new SAXException(err); } }
/** * Receive notification of the end of a document */ public void endDocument () throws SAXException { // System.err.println("RCH: end document"); try { flush(); receiver.endDocument(); receiver.close(); } catch (ValidationException err) { err.setLocator(locator); throw new SAXException(err); } catch (XPathException err) { throw new SAXException(err); } }
/** * Receive notification of the end of a document */ public void endDocument() throws SAXException { // System.err.println("RCH: end document"); try { flush(true); receiver.endDocument(); receiver.close(); } catch (ValidationException err) { err.setLocator(localLocator); throw new SAXException(err); } catch (QuitParsingException err) { // no action: not worth bothering at this stage of the game } catch (XPathException err) { err.maybeSetLocation(localLocator); throw new SAXException(err); } }
/** * Receive notification of the end of a document */ public void endDocument() throws SAXException { // System.err.println("RCH: end document"); try { flush(true); receiver.endDocument(); receiver.close(); } catch (ValidationException err) { err.setLocator(localLocator); throw new SAXException(err); } catch (QuitParsingException err) { // no action: not worth bothering at this stage of the game } catch (XPathException err) { err.maybeSetLocation(localLocator); throw new SAXException(err); } }
} catch (ValidationException err) { if (err.getLineNumber() == -1) { err.setLocator(locator);
} catch (ValidationException err) { if (err.getLineNumber() == -1) { err.setLocator(locator);
} catch (ValidationException err) { if (err.getLineNumber() == -1) { err.setLocator(locator);
/** * Report the end of an element (the close tag) */ public void endElement (String uri, String localname, String rawname) throws SAXException { //System.err.println("ReceivingContentHandler#End element " + rawname); try { flush(); receiver.endElement(); } catch (ValidationException err) { err.setLocator(locator); if (!err.hasBeenReported()) { try { pipe.getErrorListener().fatalError(err); } catch (TransformerException e) { // } } err.setHasBeenReported(); throw new SAXException(err); } catch (XPathException err) { throw new SAXException(err); } }
/** * Report the end of an element (the close tag) */ public void endElement (String uri, String localname, String rawname) throws SAXException { //System.err.println("ReceivingContentHandler#End element " + rawname); try { flush(); receiver.endElement(); } catch (ValidationException err) { err.setLocator(locator); if (!err.hasBeenReported()) { try { pipe.getErrorListener().fatalError(err); } catch (TransformerException e) { // } } err.setHasBeenReported(); throw new SAXException(err); } catch (XPathException err) { throw new SAXException(err); } }
schemaType.getDescription() + ". " + err.getMessage()); verr.setErrorCode("XTTE1540"); verr.setLocator(this); throw verr;
schemaType.getDescription() + ". " + err.getMessage()); verr.setErrorCode("XTTE1540"); verr.setLocator(this); throw verr;
schemaType.getDescription() + ". " + err.getMessage()); verr.setErrorCode("XTTE1540"); verr.setLocator((SourceLocator)this); throw verr;
ve.setConstraintReference(1, "cvc-elt", "4.3"); ve.setErrorCode(instr.isXSLT() ? "XTTE1515" : "XQDY0027"); ve.setLocator((Locator)instr); throw ve;