diff backend/src/main/java/org/dive4elements/river/importer/common/ImportParser.java @ 9650:a2a42a6bac6b

Importer (s/u-info) extensions: outer try/catch for parse and log of line no, catching parsing exception if not enough value fields, parsing error and warning log messages with line number, detecting and rejecting duplicate data series, better differentiation between error and warning log messages
author mschaefer
date Mon, 23 Mar 2020 14:57:03 +0100
parents 50416a0df385
children
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/importer/common/ImportParser.java	Wed Dec 04 16:59:25 2019 +0100
+++ b/backend/src/main/java/org/dive4elements/river/importer/common/ImportParser.java	Mon Mar 23 14:57:03 2020 +0100
@@ -10,8 +10,6 @@
 
 package org.dive4elements.river.importer.common;
 
-import java.io.IOException;
-
 /**
  * Parser interface
  *
@@ -23,7 +21,7 @@
     /**
      * Parses a file and adds the parsed objects to the parsers state
      */
-    void parse() throws IOException;
+    void parse() throws Exception;
 
     /**
      * Stores the parsed objects in the database with reference to a river

http://dive4elements.wald.intevation.org