TF-1115 Implement catch exception for EmailDataSource

This commit is contained in:
dab246
2022-10-28 12:05:53 +07:00
committed by Dat H. Pham
parent da90a2b2fc
commit d4187eec74
9 changed files with 39 additions and 25 deletions
@@ -77,7 +77,9 @@ class MailboxBindings extends BaseBindings {
Get.find<MailboxCacheManager>(),
Get.find<CacheExceptionThrower>()));
Get.lazyPut(() => StateDataSourceImpl(Get.find<StateCacheClient>()));
Get.lazyPut(() => EmailDataSourceImpl(Get.find<EmailAPI>()));
Get.lazyPut(() => EmailDataSourceImpl(
Get.find<EmailAPI>(),
Get.find<RemoteExceptionThrower>()));
Get.lazyPut(() => ThreadDataSourceImpl(
Get.find<ThreadAPI>(),
Get.find<ThreadIsolateWorker>(),