BooksCacheClient.ViewModels.BooksViewModel.ShowServiceErrorAsync C# (CSharp) Method

ShowServiceErrorAsync() private method

private ShowServiceErrorAsync ( AppServiceResponseStatus status ) : System.Threading.Tasks.Task
status AppServiceResponseStatus
return System.Threading.Tasks.Task
        private async Task ShowServiceErrorAsync(AppServiceResponseStatus status)
        {
            string error = null;
            switch (status)
            {
                case AppServiceResponseStatus.Success:
                    error = "Service did not return the expected result";
                    break;
                case AppServiceResponseStatus.Failure:
                    error = "Service failed to answer";
                    break;
                case AppServiceResponseStatus.ResourceLimitsExceeded:
                    error = "Service exceeded the resource limits and was terminated";
                    break;
                case AppServiceResponseStatus.Unknown:
                    error = "Unknown error";
                    break;
                default:
                    break;
            }
            await new MessageDialog(error).ShowAsync();
        }