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.
Screen Recording for the change:
Screen_Recording_20230428-163155_Agora_Vote
Appetize App Link https://appetize.io/app/rrzoel25vvvdfkgkn33perhb5e
Edited by Narendra Singh Anjana