1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-04 22:40:32 +00:00

Improved exception handling

This commit is contained in:
M66B 2024-12-26 22:22:02 +01:00
parent 2b1fd02a76
commit 2491108ff9

View file

@ -141,9 +141,11 @@ public class IMAPFolderEx extends IMAPFolder {
p.copy(ms, folder.getFullName());
} catch (CommandFailedException cfx) {
if (cfx.getMessage() != null &&
cfx.getMessage().contains("TRYCREATE"))
cfx.getMessage().contains("TRYCREATE")) {
Log.w(cfx);
throw new FolderNotFoundException(folder,
folder.getFullName() + " does not exist");
}
else
throw new MessagingException(cfx.getMessage(), cfx);
} catch (ConnectionException cex) {