Skip to content

Add exception handling for fetchElections in ElectionsRepositoryImpl.kt and...

Fixes #448

Changes :
Handling the exception in ElectionsRepositoryImpl.kt class for fetchElections function to throw an exception, catching and handling these exceptions in the calling code in ElectionViewModel.kt and HomeViewModel.kt classes which are getting accessed in HomeFragment.kt and CalendarViewElectionFragment.kt fragments. I have also modified a few lines of codes in HomeFragment.kt to handle these exceptions with code re-usability.

Screenshots for the change:
Screenshot_2023-04-28_165402

Screenshot_2023-04-28_165426

new

new_1

Screenshot_2023-04-28_165452

Screen Recording for the change:
Screen_Recording_20230428-163155_Agora_Vote

Appetize App Link https://appetize.io/app/rrzoel25vvvdfkgkn33perhb5e

Edited by Narendra Singh Anjana

Merge request reports