You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 14, 2025. It is now read-only.
CompletionStages returned by CloudProviders no longer fail with IO and NIO exceptions but define their own exceptions with CloudProviderException being their common base.
Also, CloudProviderException no longer extends CompletionException due to strange behaviour of CompletableFuture which ditches intermediate causes when thrown ExecutionException: "In case of exceptional completion with a CompletionException, methods get() and get(long, TimeUnit) throw an ExecutionException with the same cause as held in the corresponding CompletionException."
* The returned CompletionStage might complete exceptionally with one of the following exceptions:
109
111
* <ul>
110
-
* <li>{@link java.nio.file.NoSuchFileException} If the parent directory of this file doesn't exist</li>
111
-
* <li>{@link java.nio.file.FileAlreadyExistsException} If a node with the given path already exists and <code>replace</code> is false</li>
112
-
* <li>{@link java.io.IOException} in case of generic I/O errors</li>
112
+
* <li>{@link org.cryptomator.cloudaccess.api.exceptions.NotFoundException} If the parent directory of this file doesn't exist</li>
113
+
* <li>{@link org.cryptomator.cloudaccess.api.exceptions.TypeMismatchException} If the path points to a node that isn't a file</li>
114
+
* <li>{@link org.cryptomator.cloudaccess.api.exceptions.AlreadyExistsException} If a node with the given path already exists and <code>replace</code> is false</li>
115
+
* <li>{@link CloudProviderException} in case of generic I/O errors</li>
* The returned CompletionStage might complete exceptionally with one of the following exceptions:
155
158
* <ul>
156
-
* <li>{@link java.nio.file.NoSuchFileException} If no item exists for the given source path</li>
157
-
* <li>{@link java.nio.file.FileAlreadyExistsException} If a node with the given target path already exists and <code>replace</code> is false</li>
158
-
* <li>{@link java.io.IOException} in case of generic I/O errors</li>
159
+
* <li>{@link org.cryptomator.cloudaccess.api.exceptions.NotFoundException} If no item exists for the given source path</li>
160
+
* <li>{@link org.cryptomator.cloudaccess.api.exceptions.AlreadyExistsException} If a node with the given target path already exists and <code>replace</code> is false</li>
161
+
* <li>{@link CloudProviderException} in case of generic I/O errors</li>
159
162
* </ul>
160
163
*
161
164
* @param source The remote path of the file or folder to be moved.
0 commit comments