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
@@ -85,7 +85,9 @@ class EmailBindings extends BaseBindings {
Get.lazyPut(() => MailboxCacheDataSourceImpl(
Get.find<MailboxCacheManager>(),
Get.find<CacheExceptionThrower>()));
Get.lazyPut(() => EmailDataSourceImpl(Get.find<EmailAPI>()));
Get.lazyPut(() => EmailDataSourceImpl(
Get.find<EmailAPI>(),
Get.find<RemoteExceptionThrower>()));
Get.lazyPut(() => HiveAccountDatasourceImpl(Get.find<AccountCacheManager>()));
Get.lazyPut(() => HtmlDataSourceImpl(
Get.find<HtmlAnalyzer>(),