TF-3487 Handle get mailbox failure
This commit is contained in:
@@ -19,5 +19,5 @@ class GetAllMailboxSuccess extends UIState {
|
||||
|
||||
class GetAllMailboxFailure extends FeatureFailure {
|
||||
|
||||
GetAllMailboxFailure(dynamic exception) : super(exception: exception);
|
||||
GetAllMailboxFailure(dynamic exception, {super.onRetry}) : super(exception: exception);
|
||||
}
|
||||
@@ -25,7 +25,10 @@ class GetAllMailboxInteractor {
|
||||
properties: properties)
|
||||
.map(_toGetMailboxState);
|
||||
} catch (e) {
|
||||
yield Left<Failure, Success>(GetAllMailboxFailure(e));
|
||||
yield Left<Failure, Success>(GetAllMailboxFailure(
|
||||
e,
|
||||
onRetry: execute(session, accountId, properties: properties),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user