public Feed LoadFeedSafe([NotNull] FeedUri feedUri) { try { return(_feedManager.GetFeedFresh(feedUri)); } #region Error handling catch (OperationCanceledException) { return(null); } catch (UriFormatException ex) { Log.Warn(string.Format(Resources.UnableToLoadFeedForApp, feedUri)); Log.Warn(ex); return(null); } catch (IOException ex) { Log.Warn(string.Format(Resources.UnableToLoadFeedForApp, feedUri)); Log.Warn(ex); return(null); } catch (WebException ex) { Log.Warn(string.Format(Resources.UnableToLoadFeedForApp, feedUri)); Log.Warn(ex); return(null); } catch (UnauthorizedAccessException ex) { Log.Warn(string.Format(Resources.UnableToLoadFeedForApp, feedUri)); Log.Warn(ex); return(null); } catch (SignatureException ex) { Log.Warn(string.Format(Resources.UnableToLoadFeedForApp, feedUri)); Log.Warn(ex); return(null); } #endregion }