Improve exception handling
[lgpl/argeo-commons.git] / org.argeo.jcr / src / org / argeo / jcr / fs / JcrFileSystem.java
index 88fdb207e578cfad4ab1add8aff21c3ee0c84395..d11f0c51d6bea7896c6d9fa8fa85052aca9bc2bc 100644 (file)
@@ -22,7 +22,7 @@ public class JcrFileSystem extends FileSystem {
        private final Session session;
        private String userHomePath = null;
 
-       public JcrFileSystem(JcrFileSystemProvider provider, Session session) {
+       public JcrFileSystem(JcrFileSystemProvider provider, Session session) throws IOException {
                super();
                this.provider = provider;
                this.session = session;
@@ -31,7 +31,7 @@ public class JcrFileSystem extends FileSystem {
                        try {
                                userHomePath = userHome.getPath();
                        } catch (RepositoryException e) {
-                               throw new JcrFsException("Cannot retrieve user home path", e);
+                               throw new IOException("Cannot retrieve user home path", e);
                        }
        }