/** * Reports a fatal error to the registered ParseErrorListener, if any, and * throws a <tt>ParseException</tt> afterwards. This method simply calls * {@link #reportFatalError(String, long, long, ParseErrorListener)} * supplying <tt>-1</tt> for the line- and column number. * * @since 2.7.1 */ public static void reportFatalError(String msg, ParseErrorListener errListener) throws RDFParseException { reportFatalError(msg, -1, -1, errListener); }
/** * Reports a fatal error to the registered ParseErrorListener, if any, and * throws a <tt>ParseException</tt> 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. * <p> * This method simply calls * {@link #reportFatalError(Exception, long, long, ParseErrorListener)} * supplying <tt>-1</tt> for the line- and column number. * * @since 2.7.1 */ public static void reportFatalError(Exception e, ParseErrorListener errListener) throws RDFParseException { reportFatalError(e, -1, -1, errListener); }
/** * Reports a fatal error to the registered ParseErrorListener, if any, and * throws a <tt>ParseException</tt> afterwards. This method simply calls * {@link #reportFatalError(String,long,long)} supplying <tt>-1</tt> for the * line- and column number. */ protected void reportFatalError(String msg) throws RDFParseException { RDFParserHelper.reportFatalError(msg, getParseErrorListener()); }
/** * Reports a fatal error with associated line- and column number to the * registered ParseErrorListener, if any, and throws a * <tt>ParseException</tt> afterwards. */ protected void reportFatalError(String msg, long lineNo, long columnNo) throws RDFParseException { RDFParserHelper.reportFatalError(msg, lineNo, columnNo, getParseErrorListener()); }
/** * 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. */ protected void reportFatalError(Exception e, long lineNo, long columnNo) throws RDFParseException { RDFParserHelper.reportFatalError(e, lineNo, columnNo, getParseErrorListener()); }
/** * Reports a fatal error to the registered ParseErrorListener, if any, and * throws a <tt>ParseException</tt> 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. * <p> * This method simply calls {@link #reportFatalError(Exception,long,long)} * supplying <tt>-1</tt> for the line- and column number. */ protected void reportFatalError(Exception e) throws RDFParseException { RDFParserHelper.reportFatalError(e, getParseErrorListener()); }
reportFatalError(e, lineNo, columnNo, errListener);