示例#1
0
        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
        }
示例#2
0
 private void NoInternetHandler(ServiceCaller obj)
 {
     App.Current.MainPage.DisplayAlert("Error", "No internet access", "Cancel");
 }