static void TestCatch() { try { TestThrow(); } catch (CustomException ex) { System.Console.WriteLine(ex.ToString()); } }