X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.util%2Fsrc%2Forg%2Fargeo%2Futil%2FCsvWriter.java;h=4b9fea3faa093ca99e4e47d42c7c3715c359afaa;hb=77a5498dd5d10d2442127022efd6501a7dbddbae;hp=d90f474123f1c5d3fe41dae16f661341f976c1e1;hpb=eebaa683a3c470ad22a5eaa5c32f816a2ea2cbbb;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.util/src/org/argeo/util/CsvWriter.java b/org.argeo.util/src/org/argeo/util/CsvWriter.java index d90f47412..4b9fea3fa 100644 --- a/org.argeo.util/src/org/argeo/util/CsvWriter.java +++ b/org.argeo.util/src/org/argeo/util/CsvWriter.java @@ -23,8 +23,6 @@ import java.io.Writer; import java.util.Iterator; import java.util.List; -import org.argeo.ArgeoException; - /** Write in CSV format. */ public class CsvWriter { private final Writer out; @@ -52,7 +50,7 @@ public class CsvWriter { try { this.out = new OutputStreamWriter(out, encoding); } catch (UnsupportedEncodingException e) { - throw new ArgeoException("Cannot initialize CSV writer", e); + throw new UtilsException("Cannot initialize CSV writer", e); } } @@ -72,7 +70,7 @@ public class CsvWriter { out.write('\n'); out.flush(); } catch (IOException e) { - throw new ArgeoException("Could not write " + tokens, e); + throw new UtilsException("Could not write " + tokens, e); } } @@ -96,7 +94,7 @@ public class CsvWriter { out.write('\n'); out.flush(); } catch (IOException e) { - throw new ArgeoException("Could not write " + tokens, e); + throw new UtilsException("Could not write " + tokens, e); } }