TF-1115 Implement catch exception for MailboxDataSource
This commit is contained in:
@@ -23,12 +23,14 @@ import 'package:tmail_ui_user/features/login/data/local/token_oidc_cache_manager
|
||||
import 'package:tmail_ui_user/features/mailbox/data/local/mailbox_cache_manager.dart';
|
||||
import 'package:tmail_ui_user/features/manage_account/data/local/language_cache_manager.dart';
|
||||
import 'package:tmail_ui_user/features/thread/data/local/email_cache_manager.dart';
|
||||
import 'package:tmail_ui_user/main/exceptions/cache_exception_thrower.dart';
|
||||
|
||||
class LocalBindings extends Bindings {
|
||||
|
||||
@override
|
||||
void dependencies() {
|
||||
_bindingCaching();
|
||||
_bindingException();
|
||||
}
|
||||
|
||||
void _bindingCaching() {
|
||||
@@ -61,4 +63,8 @@ class LocalBindings extends Bindings {
|
||||
Get.find<AccountCacheClient>(),
|
||||
));
|
||||
}
|
||||
|
||||
void _bindingException() {
|
||||
Get.put(CacheExceptionThrower());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user