X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=org.argeo.server.jcr%2Fsrc%2Forg%2Fargeo%2Fjcr%2Ftabular%2FJcrTabularWriter.java;h=c3fd97cbdef075e2b455d105fbd1e513b7c7a28e;hb=8260f4470f514ea347ca53f5b4dfc632c4a4de66;hp=718ff23742af86cd0973d5e57d03bf466d893c5b;hpb=cf3a914f6fbf31b43be5cb86e54d05e8543be6a9;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.server.jcr/src/org/argeo/jcr/tabular/JcrTabularWriter.java b/org.argeo.server.jcr/src/org/argeo/jcr/tabular/JcrTabularWriter.java index 718ff2374..c3fd97cbd 100644 --- a/org.argeo.server.jcr/src/org/argeo/jcr/tabular/JcrTabularWriter.java +++ b/org.argeo.server.jcr/src/org/argeo/jcr/tabular/JcrTabularWriter.java @@ -27,7 +27,7 @@ import javax.jcr.PropertyType; import javax.jcr.RepositoryException; import org.apache.commons.io.IOUtils; -import org.argeo.ArgeoException; +import org.argeo.jcr.ArgeoJcrException; import org.argeo.jcr.ArgeoTypes; import org.argeo.jcr.JcrUtils; import org.argeo.util.CsvWriter; @@ -70,7 +70,7 @@ public class JcrTabularWriter implements TabularWriter { csvWriter = new CsvWriter(out); } } catch (RepositoryException e) { - throw new ArgeoException("Cannot create table node " + tableNode, e); + throw new ArgeoJcrException("Cannot create table node " + tableNode, e); } } @@ -88,7 +88,7 @@ public class JcrTabularWriter implements TabularWriter { .createBinary(in); contentNode.setProperty(Property.JCR_DATA, binary); } catch (RepositoryException e) { - throw new ArgeoException("Cannot store data in " + contentNode, e); + throw new ArgeoJcrException("Cannot store data in " + contentNode, e); } finally { IOUtils.closeQuietly(in); JcrUtils.closeQuietly(binary);