private void ApiCallingErrorHandler(ServiceCaller obj, Exception ex) { #if DEBUG App.Current.MainPage.DisplayAlert("Api call error", ex.Message, "Cancel"); #else App.Current.MainPage.DisplayAlert("Error", "Something went wrong. Try again later.", "Cancel"); #endif }
private void NoInternetHandler(ServiceCaller obj) { App.Current.MainPage.DisplayAlert("Error", "No internet access", "Cancel"); }