Handling Business Exceptions or Error Scenarios in PCL

SandeepAkhareSandeepAkhare USMember ✭✭
edited October 2017 in General

I was wondering what would be the best approach for handling exceptions in PCL library and display them on App. Examples of the exceptions would be
1. 400 errors while calling web API/Service.
2. Checking Internet connections.
3. Timeout issues
4. 500 server errors.
5. Business errors from server with specific error codes and error message.

Wanted to check if there is way i can handle these at one place ? specifically points from 1 to 4 which are common across the application.

Thanks in advance.

Sign In or Register to comment.