Refactor monitor and exceptions
[lgpl/argeo-commons.git] / org.argeo.server.jcr / src / org / argeo / jcr / proxy / ResourceProxyServlet.java
index 61854131be159bfff3a36be5a3b802e15df73af5..e92e2a40216f02b35a82a1e865f25643ed87e2b1 100644 (file)
@@ -32,7 +32,7 @@ import org.apache.commons.io.FilenameUtils;
 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;
 
 /** Wraps a proxy via HTTP */
@@ -126,7 +126,7 @@ public class ResourceProxyServlet extends HttpServlet {
                        in = binary.getStream();
                        IOUtils.copy(in, response.getOutputStream());
                } catch (Exception e) {
-                       throw new ArgeoException("Cannot download " + node, e);
+                       throw new ArgeoJcrException("Cannot download " + node, e);
                } finally {
                        IOUtils.closeQuietly(in);
                        JcrUtils.closeQuietly(binary);