using System; using System.Threading.Tasks; namespace Sony.ChartBot.Helpers { public static class OnError { public static void ResumeNext(Action expression) { try { expression.Invoke(); } // ReSharper disable once EmptyGeneralCatchClause catch (Exception) { } } public static async Task ResumeNextAsync(Func expression) { try { await expression.Invoke(); } // ReSharper disable once EmptyGeneralCatchClause catch (Exception) { } } } }