How to resolve internet connection lost issue



How to resolve when suddenly internet connection got lost and display the web page as attached below(There is no internet connection)


Please refer below


thanks @Ashish32229 this is for, before running an acivity. But I need to throw exception when I am running a bot and suddenly inbetween internet connection lost then it should throw network error…


For that you need to declare that in catch… expected type of exception…