/** * Used to report a {@link SAXException}to the {@link XMLReporter} * registered with this handler. */ protected void reportException(String type, SAXException e) throws SAXException { if (reporter != null) { try { reporter.report(e.getMessage(), type, e, getCurrentLocation()); } catch (XMLStreamException e1) { throw new SAXException(e1); } } }