X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=org.argeo.server.jcr%2Fsrc%2Forg%2Fargeo%2Fjcr%2Fproxy%2FAbstractUrlProxy.java;h=30369ce7d1873ef462f84fd384ce600657d665b1;hb=8260f4470f514ea347ca53f5b4dfc632c4a4de66;hp=8a66f3102dccebf1a1adb76e3c9accede7673f32;hpb=cf3a914f6fbf31b43be5cb86e54d05e8543be6a9;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.server.jcr/src/org/argeo/jcr/proxy/AbstractUrlProxy.java b/org.argeo.server.jcr/src/org/argeo/jcr/proxy/AbstractUrlProxy.java index 8a66f3102..30369ce7d 100644 --- a/org.argeo.server.jcr/src/org/argeo/jcr/proxy/AbstractUrlProxy.java +++ b/org.argeo.server.jcr/src/org/argeo/jcr/proxy/AbstractUrlProxy.java @@ -30,7 +30,7 @@ import javax.jcr.nodetype.NodeType; import org.apache.commons.io.IOUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.argeo.ArgeoException; +import org.argeo.jcr.ArgeoJcrException; import org.argeo.jcr.JcrUtils; /** Base class for URL based proxys. */ @@ -52,7 +52,7 @@ public abstract class AbstractUrlProxy implements ResourceProxy { jcrAdminSession.save(); } catch (Exception e) { JcrUtils.discardQuietly(jcrAdminSession); - throw new ArgeoException("Cannot initialize Maven proxy", e); + throw new ArgeoJcrException("Cannot initialize Maven proxy", e); } } @@ -92,7 +92,7 @@ public abstract class AbstractUrlProxy implements ResourceProxy { nodeClient = clientSession.getNode(path); return nodeClient; } catch (RepositoryException e) { - throw new ArgeoException("Cannot proxy " + path, e); + throw new ArgeoJcrException("Cannot proxy " + path, e); } finally { if (nodeClient == null) JcrUtils.logoutQuietly(clientSession); @@ -108,7 +108,7 @@ public abstract class AbstractUrlProxy implements ResourceProxy { return node; } catch (RepositoryException e) { JcrUtils.discardQuietly(jcrAdminSession); - throw new ArgeoException("Cannot retrieve and save " + path, e); + throw new ArgeoJcrException("Cannot retrieve and save " + path, e); } finally { notifyAll(); } @@ -119,7 +119,7 @@ public abstract class AbstractUrlProxy implements ResourceProxy { String path) throws RepositoryException { Node node = null; if (session.itemExists(path)) { - // throw new ArgeoException("Node " + path + " already exists"); + // throw new ArgeoJcrException("Node " + path + " already exists"); } InputStream in = null; try {