TF-1115 Implement catch exception for HiveAccountDataSource

This commit is contained in:
dab246
2022-10-28 12:58:41 +07:00
committed by Dat H. Pham
parent c4eac83477
commit 4aad1c94ed
7 changed files with 38 additions and 17 deletions
@@ -88,7 +88,9 @@ class EmailBindings extends BaseBindings {
Get.lazyPut(() => EmailDataSourceImpl(
Get.find<EmailAPI>(),
Get.find<RemoteExceptionThrower>()));
Get.lazyPut(() => HiveAccountDatasourceImpl(Get.find<AccountCacheManager>()));
Get.lazyPut(() => HiveAccountDatasourceImpl(
Get.find<AccountCacheManager>(),
Get.find<CacheExceptionThrower>()));
Get.lazyPut(() => HtmlDataSourceImpl(
Get.find<HtmlAnalyzer>(),
Get.find<DioClient>(),