public static void Main(System.String[] args) { try { Test(1000, true); } catch (System.Exception e) { System.Console.Out.WriteLine(" caught a " + e.GetType() + "\n with message: " + e.Message); } }