public void setHasBeenReported(boolean reported) { hasBeenReported = reported; if (exception != null) { exception.setHasBeenReported(reported); } }
public void setHasBeenReported(boolean reported) { hasBeenReported = reported; if (exception != null) { exception.setHasBeenReported(reported); } }
public ValidationException makeException() { if (exception != null) { exception.maybeSetLocation(this); return exception; } ValidationException ve = new ValidationException(this); if (errorCode == null) { ve.setErrorCode("FORG0001"); } else { ve.setErrorCodeQName(errorCode); } ve.setHasBeenReported(hasBeenReported); exception = ve; return ve; }
public ValidationException makeException() { if (exception != null) { exception.maybeSetLocation(this); return exception; } ValidationException ve = new ValidationException(this); if (errorCode == null) { ve.setErrorCode("FORG0001"); } else { ve.setErrorCodeQName(errorCode); } ve.setHasBeenReported(hasBeenReported); exception = ve; return ve; }
/** * 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 { // don't attempt whitespace compression if this end tag follows a start tag flush(!afterStartTag); localLocator.levelInEntity--; receiver.endElement(); } catch (ValidationException err) { err.maybeSetLocation(localLocator); if (!err.hasBeenReported()) { pipe.getErrorListener().fatalError(err); } err.setHasBeenReported(true); throw new SAXException(err); } catch (XPathException err) { err.maybeSetLocation(localLocator); throw new SAXException(err); } afterStartTag = false; }
/** * 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.maybeSetLocation(ExpressionLocation.makeFromSax(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); } }
/** * 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 { // don't attempt whitespace compression if this end tag follows a start tag flush(!afterStartTag); localLocator.levelInEntity--; receiver.endElement(); } catch (ValidationException err) { err.maybeSetLocation(localLocator); if (!err.hasBeenReported()) { pipe.getErrorListener().fatalError(err); } err.setHasBeenReported(true); throw new SAXException(err); } catch (XPathException err) { err.maybeSetLocation(localLocator); throw new SAXException(err); } afterStartTag = false; }