add FIXME note about N-Quads parser catching all Exceptions
Project: http://git-wip-us.apache.org/repos/asf/any23/repo Commit: http://git-wip-us.apache.org/repos/asf/any23/commit/5f8fb13a Tree: http://git-wip-us.apache.org/repos/asf/any23/tree/5f8fb13a Diff: http://git-wip-us.apache.org/repos/asf/any23/diff/5f8fb13a Branch: refs/heads/master Commit: 5f8fb13a6d70a90e0369e66cc1652faa7d7bc446 Parents: 94f6d30 Author: Peter Ansell <[email protected]> Authored: Wed Oct 24 13:57:50 2012 +1000 Committer: Peter Ansell <[email protected]> Committed: Wed Jun 26 10:08:07 2013 +1000 ---------------------------------------------------------------------- nquads/src/main/java/org/apache/any23/io/nquads/NQuadsParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/any23/blob/5f8fb13a/nquads/src/main/java/org/apache/any23/io/nquads/NQuadsParser.java ---------------------------------------------------------------------- diff --git a/nquads/src/main/java/org/apache/any23/io/nquads/NQuadsParser.java b/nquads/src/main/java/org/apache/any23/io/nquads/NQuadsParser.java index 485d5cb..7ca4fe9 100644 --- a/nquads/src/main/java/org/apache/any23/io/nquads/NQuadsParser.java +++ b/nquads/src/main/java/org/apache/any23/io/nquads/NQuadsParser.java @@ -273,7 +273,7 @@ public class NQuadsParser extends RDFParserBase { } catch (EOS eos) { reportFatalError("Unexpected end of stream.", row, col); throw new IllegalStateException(); - } catch (Exception e) { + } catch (Exception e) { // FIXME: We should not be catching IOException here as that is used to indicate a failure of the stream/writer if(super.stopAtFirstError()) { if(e instanceof RDFParseException) throw (RDFParseException) e;
