public MappedError(int hr) { ErrorMapperResult descriptionAndUrl = ErrorMapperApi.GetMappedErrorDescriptionAndUrl(hr); this._text = descriptionAndUrl.Description; this._url = descriptionAndUrl.WebHelpUrl; }
public static bool IsLightWeightError(HRESULT hr) { if (HRESULT._NS_E_BILLING_LIGHTWEIGHT_ACCOUNT == hr) { return(true); } ErrorMapperResult descriptionAndUrl = ErrorMapperApi.GetMappedErrorDescriptionAndUrl(hr.Int); return(HRESULT._NS_E_BILLING_LIGHTWEIGHT_ACCOUNT.Int == descriptionAndUrl.Hr); }
private ErrorDialogInfo(int hr, eErrorCondition condition, string title, string description) : base("res://ZuneShellResources!ErrorDialog.uix#ErrorDialogContentUI") { this._title = title; this._hrOriginal = hr; this._condition = condition; ErrorMapperResult descriptionAndUrl = ErrorMapperApi.GetMappedErrorDescriptionAndUrl(this._hrOriginal, this._condition); this._hr = descriptionAndUrl.Hr; this._description = description ?? descriptionAndUrl.Description; this._webHelpUrl = descriptionAndUrl.WebHelpUrl; }
protected void SetError(HRESULT hrError) { if (!hrError.IsError) { return; } ErrorMapperResult descriptionAndUrl = ErrorMapperApi.GetMappedErrorDescriptionAndUrl(hrError.Int); if (descriptionAndUrl == null) { return; } this._error = descriptionAndUrl.Description; this._helpUrl = descriptionAndUrl.WebHelpUrl; }
protected void SetResult(HRESULT hr) { this._hr = hr; if (!hr.IsError) { return; } ErrorMapperResult descriptionAndUrl = ErrorMapperApi.GetMappedErrorDescriptionAndUrl(hr.Int); if (descriptionAndUrl.Hr == (uint)HRESULT._E_FAIL.Int || descriptionAndUrl.Hr == (uint)HRESULT._NS_E_WMP_UNKNOWN_ERROR.Int) { return; } this._detailedError = descriptionAndUrl.Description; }