Updated usage of FuseNotSupportedException

This commit is contained in:
JaniruTEC
2020-08-18 16:55:14 +02:00
parent bbf9379f56
commit 84fbf7392b

View File

@@ -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);
}
}