@Override public void error(String errorClass, String message) { if (parseErrorListener != null) { parseErrorListener.error(message, -1, -1); } }
@Override public void warning(String warningClass, String message) { if (parseErrorListener != null) { parseErrorListener.warning(message, -1, -1); } }
/** * Reports a fatal error with associated line- and column number to the registered ParseErrorListener, if * any, and throws a <tt>ParseException</tt> afterwards. */ public static void reportFatalError(String msg, long lineNo, long columnNo, ParseErrorListener errListener) throws RDFParseException { if (errListener != null) { errListener.fatalError(msg, lineNo, columnNo); } throw new RDFParseException(msg, lineNo, columnNo); }
errListener.error(e.getMessage(), lineNo, columnNo);
/** * Reports a warning with associated line- and column number to the registered * ParseErrorListener, if any. */ protected void reportWarning(String msg, long lineNo, long columnNo) { if (errListener != null) { errListener.warning(msg, lineNo, columnNo); } }
/** * Reports a fatal error with associated line- and column number to the registered ParseErrorListener, if * any, and throws a <tt>ParseException</tt> afterwards. */ public static void reportFatalError(String msg, long lineNo, long columnNo, ParseErrorListener errListener) throws RDFParseException { if (errListener != null) { errListener.fatalError(msg, lineNo, columnNo); } throw new RDFParseException(msg, lineNo, columnNo); }
errListener.error(e.getMessage(), lineNo, columnNo);
/** * Reports a warning with associated line- and column number to the registered ParseErrorListener, if any. */ protected void reportWarning(String msg, long lineNo, long columnNo) { if (errListener != null) { errListener.warning(msg, lineNo, columnNo); } }
/** * Reports a fatal error with associated line- and column number to the registered ParseErrorListener, if * any, and throws a <tt>ParseException</tt> afterwards. */ public static void reportFatalError(String msg, long lineNo, long columnNo, ParseErrorListener errListener) throws RDFParseException { if (errListener != null) { errListener.fatalError(msg, lineNo, columnNo); } throw new RDFParseException(msg, lineNo, columnNo); }
errListener.error(e.getMessage(), lineNo, columnNo);
/** * Reports a warning with associated line- and column number to the registered * ParseErrorListener, if any. */ protected void reportWarning(String msg, long lineNo, long columnNo) { if (errListener != null) { errListener.warning(msg, lineNo, columnNo); } }
/** * Reports a fatal error with associated line- and column number to the registered ParseErrorListener, if * any, and throws a <tt>ParseException</tt> wrapped the supplied exception afterwards. An exception is * made for the case where the supplied exception is a {@link RDFParseException}; in that case the * supplied exception is not wrapped in another ParseException and the error message is not reported to * the ParseErrorListener, assuming that it has already been reported when the original ParseException was * thrown. */ public static void reportFatalError(Exception e, long lineNo, long columnNo, ParseErrorListener errListener) throws RDFParseException { if (e instanceof RDFParseException) { throw (RDFParseException)e; } else { if (errListener != null) { errListener.fatalError(e.getMessage(), lineNo, columnNo); } throw new RDFParseException(e, lineNo, columnNo); } }
@Override public void error(SAXParseException exception) throws SAXException { try { if (getParserConfig().get(XMLParserSettings.FAIL_ON_SAX_NON_FATAL_ERRORS)) { if (getParseErrorListener() != null) { getParseErrorListener().error(exception.getMessage(), internalSAXParser.getLocator().getLineNumber(), internalSAXParser.getLocator().getColumnNumber()); } if (!getParserConfig().isNonFatalError(XMLParserSettings.FAIL_ON_SAX_NON_FATAL_ERRORS)) { throw new QueryResultParseException(exception, internalSAXParser.getLocator().getLineNumber(), internalSAXParser.getLocator().getColumnNumber()); } } } catch (QueryResultParseException e) { throw new SAXException(e); } }
protected void reportWarning(String msg) { if (getParseErrorListener() != null) { getParseErrorListener().warning(msg, internalSAXParser.getLocator().getLineNumber(), internalSAXParser.getLocator().getColumnNumber()); } }
/** * Reports a fatal error with associated line- and column number to the registered ParseErrorListener, if * any, and throws a <tt>ParseException</tt> wrapped the supplied exception afterwards. An exception is * made for the case where the supplied exception is a {@link RDFParseException}; in that case the * supplied exception is not wrapped in another ParseException and the error message is not reported to * the ParseErrorListener, assuming that it has already been reported when the original ParseException was * thrown. */ public static void reportFatalError(Exception e, long lineNo, long columnNo, ParseErrorListener errListener) throws RDFParseException { if (e instanceof RDFParseException) { throw (RDFParseException)e; } else { if (errListener != null) { errListener.fatalError(e.getMessage(), lineNo, columnNo); } throw new RDFParseException(e, lineNo, columnNo); } }
@Override public void error(SAXParseException exception) throws SAXException { try { if (getParserConfig().get(XMLParserSettings.FAIL_ON_SAX_NON_FATAL_ERRORS)) { if (getParseErrorListener() != null) { getParseErrorListener().error(exception.getMessage(), internalSAXParser.getLocator().getLineNumber(), internalSAXParser.getLocator().getColumnNumber()); } if (!getParserConfig().isNonFatalError(XMLParserSettings.FAIL_ON_SAX_NON_FATAL_ERRORS)) { throw new QueryResultParseException(exception, internalSAXParser.getLocator().getLineNumber(), internalSAXParser.getLocator().getColumnNumber()); } } } catch (QueryResultParseException e) { throw new SAXException(e); } }
protected void reportWarning(String msg) { if (getParseErrorListener() != null) { getParseErrorListener().warning(msg, internalSAXParser.getLocator().getLineNumber(), internalSAXParser.getLocator().getColumnNumber()); } }
/** * Reports a fatal error with associated line- and column number to the registered ParseErrorListener, if * any, and throws a <tt>ParseException</tt> wrapped the supplied exception afterwards. An exception is * made for the case where the supplied exception is a {@link RDFParseException}; in that case the * supplied exception is not wrapped in another ParseException and the error message is not reported to * the ParseErrorListener, assuming that it has already been reported when the original ParseException was * thrown. */ public static void reportFatalError(String message, Exception e, long lineNo, long columnNo, ParseErrorListener errListener) throws RDFParseException { if (e instanceof RDFParseException) { throw (RDFParseException)e; } else { if (errListener != null) { errListener.fatalError(message, lineNo, columnNo); } throw new RDFParseException(message, e, lineNo, columnNo); } }
@Override public void error(SAXParseException exception) throws SAXException { try { if (getParserConfig().get(XMLParserSettings.FAIL_ON_SAX_NON_FATAL_ERRORS)) { if (getParseErrorListener() != null) { getParseErrorListener().error(exception.getMessage(), internalSAXParser.getLocator().getLineNumber(), internalSAXParser.getLocator().getColumnNumber()); } if (!getParserConfig().isNonFatalError(XMLParserSettings.FAIL_ON_SAX_NON_FATAL_ERRORS)) { throw new QueryResultParseException(exception, internalSAXParser.getLocator().getLineNumber(), internalSAXParser.getLocator().getColumnNumber()); } } } catch (QueryResultParseException e) { throw new SAXException(e); } }
protected void reportWarning(String msg) { if (getParseErrorListener() != null) { getParseErrorListener().warning(msg, internalSAXParser.getLocator().getLineNumber(), internalSAXParser.getLocator().getColumnNumber()); } }