ExpansionDownloader.Service.DownloaderService.GetLogMessageForNetworkError C# (CSharp) Method

GetLogMessageForNetworkError() public method

a non-localized string appropriate for logging corresponding to one of the NETWORK_* constants.
public GetLogMessageForNetworkError ( NetworkDisabledState networkError ) : string
networkError NetworkDisabledState /// The network Error. ///
return string
        public string GetLogMessageForNetworkError(NetworkDisabledState networkError)
        {
            switch (networkError)
            {
                case NetworkDisabledState.RecommendedUnusableDueToSize:
                    return "download size exceeds recommended limit for mobile network";

                case NetworkDisabledState.UnusableDueToSize:
                    return "download size exceeds limit for mobile network";

                case NetworkDisabledState.NoConnection:
                    return "no network connection available";

                case NetworkDisabledState.CannotUseRoaming:
                    return "download cannot use the current network connection because it is roaming";

                case NetworkDisabledState.TypeDisallowedByRequestor:
                    return "download was requested to not use the current network type";

                default:
                    return "unknown error with network connectivity";
            }
        }