소스 검색

Updated usage of FuseNotSupportedException

JaniruTEC 4 년 전
부모
커밋
84fbf7392b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      main/commons/src/main/java/org/cryptomator/common/vaults/FuseVolume.java

+ 2 - 2
main/commons/src/main/java/org/cryptomator/common/vaults/FuseVolume.java

@@ -41,7 +41,7 @@ public class FuseVolume implements Volume {
 	}
 
 	@Override
-	public void mount(CryptoFileSystem fs, String mountFlags) throws InvalidMountPointException, FuseNotSupportedException, VolumeException {
+	public void mount(CryptoFileSystem fs, String mountFlags) throws InvalidMountPointException, VolumeException {
 		this.mountPoint = determineMountPoint();
 
 		mount(fs.getPath("/"), mountFlags);
@@ -71,7 +71,7 @@ public class FuseVolume implements Volume {
 					.withFlags(splitFlags(mountFlags)).withMountPoint(mountPoint) //
 					.build();
 			this.fuseMnt = mounter.mount(root, envVars);
-		} catch (CommandFailedException e) {
+		} catch (CommandFailedException | FuseNotSupportedException e) {
 			throw new VolumeException("Unable to mount Filesystem", e);
 		}
 	}