reverted log error to ExtractionException
authorHans <firedrake93@gmail.com>
Tue, 31 Jul 2018 03:15:20 +0000 (22:15 -0500)
committerHans <firedrake93@gmail.com>
Tue, 31 Jul 2018 03:15:20 +0000 (22:15 -0500)
core/src/main/java/org/apache/any23/extractor/rdf/BaseRDFExtractor.java

index f390f04..de717c1 100644 (file)
@@ -172,7 +172,7 @@ public abstract class BaseRDFExtractor implements Extractor.ContentExtractor {
         } catch (RDFHandlerException ex) {
             throw new IllegalStateException("Unexpected exception.", ex);
         } catch (RDFParseException ex) {
-            LOG.error("Error while parsing RDF document.", ex);
+            throw new ExtractionException("Error while parsing RDF document.", ex, extractionResult);
         }
     }