Move Deck exception classes into own files

https://github.com/stefan-niedermann/nextcloud-deck/issues/208
This commit is contained in:
Stefan Niedermann 2020-04-16 09:18:56 +02:00 committed by tobiasKaminsky
parent b0ab109e5d
commit ee882187fb
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7
4 changed files with 10 additions and 6 deletions

View file

@ -0,0 +1,4 @@
package com.nextcloud.client.integration;
public class AppCannotHandelNotificationException extends Exception {
}

View file

@ -0,0 +1,4 @@
package com.nextcloud.client.integration;
public class AppNotInstalledException extends Exception {
}

View file

@ -12,10 +12,4 @@ public interface NotificationHandler {
@NonNull
Intent handleNotification(@NonNull final Notification notification,
@NonNull final User user) throws AppNotInstalledException, AppCannotHandelNotificationException;
class AppNotInstalledException extends Exception {
}
class AppCannotHandelNotificationException extends Exception {
}
}

View file

@ -5,6 +5,8 @@ import android.content.Intent;
import android.util.Log;
import com.nextcloud.client.account.User;
import com.nextcloud.client.integration.AppCannotHandelNotificationException;
import com.nextcloud.client.integration.AppNotInstalledException;
import com.nextcloud.client.integration.NotificationHandler;
import com.owncloud.android.lib.resources.notifications.models.Notification;