using System.Collections.Generic;
public static void Main()
throw new KeyNotFoundException();
catch (Exception e) when (e is KeyNotFoundException || e is InvalidCastException)
Console.WriteLine("Database is corrupt, clearing collections");
Console.WriteLine("Error getting all files from database");