Refactor monitor and exceptions
[lgpl/argeo-commons.git] / org.argeo.util / src / org / argeo / util / CsvParserWithLinesAsMap.java
index e7baabbf0b50d4b77dfaddf873a1917421820e3f..fe1750a233f54fd1ddb6c5040de2f9faaccf8816 100644 (file)
@@ -19,7 +19,7 @@ import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 
-import org.argeo.ArgeoException;
+import org.argeo.util.internal.UtilsException;
 
 /**
  * CSV parser allowing to process lines as maps whose keys are the header
@@ -42,7 +42,7 @@ public abstract class CsvParserWithLinesAsMap extends CsvParser {
        protected final void processLine(Integer lineNumber, List<String> header,
                        List<String> tokens) {
                if (header == null)
-                       throw new ArgeoException("Only CSV with header is supported");
+                       throw new UtilsException("Only CSV with header is supported");
                Map<String, String> line = new HashMap<String, String>();
                for (int i = 0; i < header.size(); i++) {
                        String key = header.get(i);