projects
/
lgpl
/
argeo-commons.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor JCR exceptions.
[lgpl/argeo-commons.git]
/
org.argeo.cms
/
src
/
org
/
argeo
/
cms
/
tabular
/
JcrTabularWriter.java
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 e2565bf46cbc8ee6efb88578941246768efe7359..29933cd75e236a98053fd959e5e0e6b6790cf5b5 100644
(file)
--- 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.api.tabular.TabularColumn;
import org.argeo.api.tabular.TabularWriter;
import org.argeo.cms.ArgeoTypes;
-import org.argeo.jcr.
Argeo
JcrException;
+import org.argeo.jcr.JcrException;
import org.argeo.jcr.JcrUtils;
import org.argeo.util.CsvWriter;
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) {
csvWriter = new CsvWriter(out);
}
} catch (RepositoryException e) {
- throw new
Argeo
JcrException("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) {
.createBinary(in);
contentNode.setProperty(Property.JCR_DATA, binary);
} catch (RepositoryException e) {
- throw new
Argeo
JcrException("Cannot store data in " + contentNode, e);
+ throw new JcrException("Cannot store data in " + contentNode, e);
} finally {
IOUtils.closeQuietly(in);
JcrUtils.closeQuietly(binary);
} finally {
IOUtils.closeQuietly(in);
JcrUtils.closeQuietly(binary);