Catch a connection failure?
<p>I am using SAXParserFactory and XML reader for fetching from the API.But sometimes when the internet connection goes down,it is getting stuck and application is getting crashed.I am not so good in the concept of exception handling and all. Can anyone help me in finding a solution.I want that operation to be stopped and want to show a custom message, when connection fails.
Please help.
Very urgent..</p>
