1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-10 21:33:36 +00:00

[SG-872] Create generic exception handler for mobile (#2222)

* [SG-872] Add method to handle exception in BaseViewModel

* [SG-872] Code format
This commit is contained in:
André Bispo
2022-12-13 21:53:04 +00:00
committed by GitHub
parent f4b4cfc9de
commit aa0544cd3d
3 changed files with 20 additions and 21 deletions

View File

@@ -305,15 +305,5 @@ namespace Bit.App.Pages
_logger.Exception(e);
}
}
private void HandleException(Exception ex)
{
Xamarin.Essentials.MainThread.InvokeOnMainThreadAsync(async () =>
{
await _deviceActionService.HideLoadingAsync();
await _platformUtilsService.ShowDialogAsync(AppResources.GenericErrorMessage);
}).FireAndForget();
_logger.Exception(ex);
}
}
}