Răsfoiți Sursa

remove non needed exceptions

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 5 ani în urmă
părinte
comite
34eaf9d6db

+ 1 - 4
src/main/java/com/nextcloud/client/network/ClientFactoryImpl.java

@@ -59,10 +59,7 @@ class ClientFactoryImpl implements ClientFactory {
     public NextcloudClient createNextcloudClient(User user) throws CreationException {
         try {
             return OwnCloudClientFactory.createNextcloudClient(user.toPlatformAccount(), context);
-        } catch (OperationCanceledException |
-            AuthenticatorException |
-            IOException |
-            AccountUtils.AccountNotFoundException e) {
+        } catch (AccountUtils.AccountNotFoundException e) {
             throw new CreationException(e);
         }
     }