X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.cms%2Fsrc%2Forg%2Fargeo%2Fcms%2Ftabular%2FJcrTabularWriter.java;h=29933cd75e236a98053fd959e5e0e6b6790cf5b5;hb=215480a865603e0090c43114541441ac1586b379;hp=e2565bf46cbc8ee6efb88578941246768efe7359;hpb=afd31256550ee8fe257a43558cfd07dfcf2e5c04;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.cms/src/org/argeo/cms/tabular/JcrTabularWriter.java b/org.argeo.cms/src/org/argeo/cms/tabular/JcrTabularWriter.java index e2565bf46..29933cd75 100644 --- a/org.argeo.cms/src/org/argeo/cms/tabular/JcrTabularWriter.java +++ b/org.argeo.cms/src/org/argeo/cms/tabular/JcrTabularWriter.java @@ -15,7 +15,7 @@ import org.apache.commons.io.IOUtils; import org.argeo.api.tabular.TabularColumn; import org.argeo.api.tabular.TabularWriter; import org.argeo.cms.ArgeoTypes; -import org.argeo.jcr.ArgeoJcrException; +import org.argeo.jcr.JcrException; import org.argeo.jcr.JcrUtils; import org.argeo.util.CsvWriter; @@ -55,7 +55,7 @@ public class JcrTabularWriter implements TabularWriter { csvWriter = new CsvWriter(out); } } catch (RepositoryException e) { - throw new ArgeoJcrException("Cannot create table node " + tableNode, e); + throw new JcrException("Cannot create table node " + tableNode, e); } } @@ -73,7 +73,7 @@ public class JcrTabularWriter implements TabularWriter { .createBinary(in); contentNode.setProperty(Property.JCR_DATA, binary); } catch (RepositoryException e) { - throw new ArgeoJcrException("Cannot store data in " + contentNode, e); + throw new JcrException("Cannot store data in " + contentNode, e); } finally { IOUtils.closeQuietly(in); JcrUtils.closeQuietly(binary);