/// <summary> /// Registers the global filters. /// </summary> /// <param name="filters">The filters.</param> public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.ThrowIfNull(nameof(filters)); filters.Add(new HandleErrorAttribute()); }