Loading mail/common/src/main/java/com/fsck/k9/mail/AuthenticationFailedException.javadeleted 100644 → 0 +0 −14 Original line number Diff line number Diff line package com.fsck.k9.mail; public class AuthenticationFailedException extends MessagingException { public static final long serialVersionUID = -1; public AuthenticationFailedException(String message) { super(message); } public AuthenticationFailedException(String message, Throwable throwable) { super(message, throwable); } } mail/common/src/main/java/com/fsck/k9/mail/AuthenticationFailedException.kt 0 → 100644 +9 −0 Original line number Diff line number Diff line package com.fsck.k9.mail class AuthenticationFailedException @JvmOverloads constructor( message: String, throwable: Throwable? = null, val messageFromServer: String? = null ) : MessagingException(message, throwable) { val isMessageFromServerAvailable = messageFromServer != null } mail/protocols/imap/src/main/java/com/fsck/k9/mail/store/imap/ImapConnection.java +1 −1 Original line number Diff line number Diff line Loading @@ -408,7 +408,7 @@ class ImapConnection { private AuthenticationFailedException handlePermanentXoauth2Failure(NegativeImapResponseException e) { Timber.v(e, "Permanent failure during XOAUTH2"); return new AuthenticationFailedException(e.getMessage(), e); return new AuthenticationFailedException(e.getMessage(), e, e.getAlertText()); } private List<ImapResponse> handleTemporaryXoauth2Failure(NegativeImapResponseException e) throws IOException, MessagingException { Loading Loading
mail/common/src/main/java/com/fsck/k9/mail/AuthenticationFailedException.javadeleted 100644 → 0 +0 −14 Original line number Diff line number Diff line package com.fsck.k9.mail; public class AuthenticationFailedException extends MessagingException { public static final long serialVersionUID = -1; public AuthenticationFailedException(String message) { super(message); } public AuthenticationFailedException(String message, Throwable throwable) { super(message, throwable); } }
mail/common/src/main/java/com/fsck/k9/mail/AuthenticationFailedException.kt 0 → 100644 +9 −0 Original line number Diff line number Diff line package com.fsck.k9.mail class AuthenticationFailedException @JvmOverloads constructor( message: String, throwable: Throwable? = null, val messageFromServer: String? = null ) : MessagingException(message, throwable) { val isMessageFromServerAvailable = messageFromServer != null }
mail/protocols/imap/src/main/java/com/fsck/k9/mail/store/imap/ImapConnection.java +1 −1 Original line number Diff line number Diff line Loading @@ -408,7 +408,7 @@ class ImapConnection { private AuthenticationFailedException handlePermanentXoauth2Failure(NegativeImapResponseException e) { Timber.v(e, "Permanent failure during XOAUTH2"); return new AuthenticationFailedException(e.getMessage(), e); return new AuthenticationFailedException(e.getMessage(), e, e.getAlertText()); } private List<ImapResponse> handleTemporaryXoauth2Failure(NegativeImapResponseException e) throws IOException, MessagingException { Loading