Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-09-03 16:45:44 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-09-03 16:45:44 +0300
commit95567432d164c6d5c852f870db14f3bea1fe4465 (patch)
tree8db9c65f93f8d69778910949f6f7201bf154aa70 /lib/Contracts
parentf670a4d7582bb77bad0af1f6f06313f0d5da7745 (diff)
Improve error handling of the message sync
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Contracts')
-rw-r--r--lib/Contracts/IMailManager.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Contracts/IMailManager.php b/lib/Contracts/IMailManager.php
index ca7441197..6382c3c55 100644
--- a/lib/Contracts/IMailManager.php
+++ b/lib/Contracts/IMailManager.php
@@ -24,6 +24,8 @@ declare(strict_types=1);
namespace OCA\Mail\Contracts;
use OCA\Mail\Account;
+use OCA\Mail\Exception\ClientException;
+use OCA\Mail\Exception\ServiceException;
use OCA\Mail\Folder;
use OCA\Mail\IMAP\FolderStats;
use OCA\Mail\IMAP\Sync\Request as SyncRequest;
@@ -57,6 +59,9 @@ interface IMailManager {
* @param Account
* @param SyncRequest $syncRequest
* @return SyncResponse
+ *
+ * @throws ClientException
+ * @throws ServiceException
*/
public function syncMessages(Account $account, SyncRequest $syncRequest): SyncResponse;