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:
parent
2b1fd02a76
commit
2491108ff9
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue