void warning(Taint taintMe, int id, SAXParseException e) throws SAXParseException { try { switch (options.getErrorMode(id)) { case EM_IGNORE: break; case EM_WARNING: handlers.getErrorHandler().warning(e); break; case EM_ERROR: if (taintMe != null) taintMe.taint(); handlers.getErrorHandler().error(e); break; case EM_FATAL: handlers.getErrorHandler().fatalError(e); break; } } catch (SAXParseException xx) { throw xx; } catch (SAXException ee) { throw new WrappedException(ee); } if (e instanceof ParseException && ((ParseException) e).isPromoted()) throw e; if (options.getErrorMode(id) == EM_FATAL) { // If we get here, we shouldn't go on // throw an error into Jena. throw new FatalParsingErrorException(); } }
void warning(Taint taintMe, int id, SAXParseException e) throws SAXParseException { try { switch (options.getErrorMode(id)) { case EM_IGNORE: break; case EM_WARNING: handlers.getErrorHandler().warning(e); break; case EM_ERROR: if (taintMe != null) taintMe.taint(); handlers.getErrorHandler().error(e); break; case EM_FATAL: handlers.getErrorHandler().fatalError(e); break; } } catch (SAXParseException xx) { throw xx; } catch (SAXException ee) { throw new WrappedException(ee); } if (e instanceof ParseException && ((ParseException) e).isPromoted()) throw e; if (options.getErrorMode(id) == EM_FATAL) { // If we get here, we shouldn't go on // throw an error into Jena. throw new FatalParsingErrorException(); } }
public void setHandlersWith(ARPHandlers newHh) { handlers = ARPHandlers.createNewHandlers() ; handlers.setErrorHandler(newHh.getErrorHandler()); handlers.setExtendedHandler(newHh.getExtendedHandler()); handlers.setNamespaceHandler(newHh.getNamespaceHandler()); handlers.setStatementHandler(newHh.getStatementHandler()); }
public void setHandlersWith(ARPHandlers newHh) { handlers = ARPHandlers.createNewHandlers() ; handlers.setErrorHandler(newHh.getErrorHandler()); handlers.setExtendedHandler(newHh.getExtendedHandler()); handlers.setNamespaceHandler(newHh.getNamespaceHandler()); handlers.setStatementHandler(newHh.getStatementHandler()); }