Refactor monitor and exceptions
[lgpl/argeo-commons.git] / org.argeo.util / src / org / argeo / util / CsvWriter.java
index d90f474123f1c5d3fe41dae16f661341f976c1e1..1ebe1022dd48aff118a97d983a0d7e02d251b561 100644 (file)
@@ -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);
                }
        }