X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=org.argeo.util%2Fsrc%2Forg%2Fargeo%2Futil%2FCsvWriter.java;fp=org.argeo.util%2Fsrc%2Forg%2Fargeo%2Futil%2FCsvWriter.java;h=1ebe1022dd48aff118a97d983a0d7e02d251b561;hb=3a0d866fbeea3f78c293212f4b4fbaeba7dfe2bd;hp=d90f474123f1c5d3fe41dae16f661341f976c1e1;hpb=b1dbb754c88b8609246b865a25bc946213370662;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..1ebe1022d 100644 --- a/org.argeo.util/src/org/argeo/util/CsvWriter.java +++ b/org.argeo.util/src/org/argeo/util/CsvWriter.java @@ -23,7 +23,7 @@ import java.io.Writer; import java.util.Iterator; import java.util.List; -import org.argeo.ArgeoException; +import org.argeo.util.internal.UtilsException; /** Write in CSV format. */ public class CsvWriter { @@ -52,7 +52,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 +72,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 +96,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); } }