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. */
jcrAdminSession.save();
} catch (Exception e) {
JcrUtils.discardQuietly(jcrAdminSession);
- throw new ArgeoException("Cannot initialize Maven proxy", e);
+ throw new ArgeoJcrException("Cannot initialize Maven proxy", e);
}
}
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);
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();
}
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 {