protected override void TranslateException(ref Exception e, out ErrorCategory category) { base.TranslateException(ref e, out category); category = (ErrorCategory)1001; if (SystemConfigurationTasksHelper.IsKnownMapiDotNETException(e)) { e = new InvalidOperationException(Strings.ErrorFailedToGetDatabaseStatus(this.Identity.ToString()), e); } }
protected override void TranslateException(ref Exception e, out ErrorCategory category) { base.TranslateException(ref e, out category); category = (ErrorCategory)1001; if (SystemConfigurationTasksHelper.IsKnownMapiDotNETException(e)) { TDataObject dataObject = this.DataObject; e = new InvalidOperationException(Strings.ErrorFailedToConnectToStore(dataObject.ServerName), e); } }
protected override bool IsKnownException(Exception e) { return(AmExceptionHelper.IsKnownClusterException(this, e) || SystemConfigurationTasksHelper.IsKnownMapiDotNETException(e) || e is AmServerException || e is ObjectNotFoundException || base.IsKnownException(e)); }
protected override bool IsKnownException(Exception exception) { return(base.IsKnownException(exception) || SystemConfigurationTasksHelper.IsKnownWmiException(exception) || SystemConfigurationTasksHelper.IsKnownMapiDotNETException(exception) || SystemConfigurationTasksHelper.IsKnownClusterUpdateDatabaseResourceException(exception)); }