Skip to content

Commit 60e32c5

Browse files
Allow throwing IOExceptions during Mount.close()
1 parent 3358f2d commit 60e32c5

File tree

1 file changed

+9
-1
lines changed
  • src/main/java/org/cryptomator/integrations/mount

1 file changed

+9
-1
lines changed

src/main/java/org/cryptomator/integrations/mount/Mount.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package org.cryptomator.integrations.mount;
22

3+
import java.io.IOException;
4+
35
/**
46
* Handle to control the lifecycle of a mounted file system.
57
* <p>
@@ -34,7 +36,13 @@ default void unmountForced() throws UnmountFailedException {
3436
throw new UnsupportedOperationException();
3537
}
3638

37-
default void close() throws UnmountFailedException {
39+
/**
40+
* Unmounts (if required) and releases any resources.
41+
*
42+
* @throws UnmountFailedException Thrown if unmounting failed
43+
* @throws IOException Thrown if cleaning up resources failed
44+
*/
45+
default void close() throws UnmountFailedException, IOException {
3846
unmount();
3947
}
4048

0 commit comments

Comments
 (0)