Throw authenticator exceptions

This commit is contained in:
M66B
2019-05-09 12:28:01 +02:00
parent 5780253a14
commit 9093486255
3 changed files with 22 additions and 18 deletions

View File

@@ -19,6 +19,8 @@ package eu.faircode.email;
Copyright 2018-2019 by Marcel Bokhorst (M66B)
*/
import android.accounts.AuthenticatorException;
import android.accounts.OperationCanceledException;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
@@ -251,7 +253,7 @@ public class ServiceSend extends LifecycleService {
}
};
private void send(EntityMessage message) throws MessagingException, IOException {
private void send(EntityMessage message) throws MessagingException, IOException, AuthenticatorException, OperationCanceledException {
DB db = DB.getInstance(this);
// Mark attempt