/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); } }
/** * 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); } }
/** * 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); } }
/** * 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 fatalError(SAXParseException exception) throws SAXException { if (getParseErrorListener() != null) { getParseErrorListener().fatalError(exception.getMessage(), internalSAXParser.getLocator().getLineNumber(), internalSAXParser.getLocator().getColumnNumber()); } throw new SAXParseException(exception.getMessage(), internalSAXParser.getLocator(), new QueryResultParseException(exception, internalSAXParser.getLocator().getLineNumber(), internalSAXParser.getLocator().getColumnNumber())); }
@Override public void fatalError(SAXParseException exception) throws SAXException { if (getParseErrorListener() != null) { getParseErrorListener().fatalError(exception.getMessage(), internalSAXParser.getLocator().getLineNumber(), internalSAXParser.getLocator().getColumnNumber()); } throw new SAXParseException(exception.getMessage(), internalSAXParser.getLocator(), new QueryResultParseException(exception, internalSAXParser.getLocator().getLineNumber(), internalSAXParser.getLocator().getColumnNumber())); }
@Override public void fatalError(SAXParseException exception) throws SAXException { if (getParseErrorListener() != null) { getParseErrorListener().fatalError(exception.getMessage(), internalSAXParser.getLocator().getLineNumber(), internalSAXParser.getLocator().getColumnNumber()); } throw new SAXParseException(exception.getMessage(), internalSAXParser.getLocator(), new QueryResultParseException(exception, internalSAXParser.getLocator().getLineNumber(), internalSAXParser.getLocator().getColumnNumber())); }