using System;
public class Program
{
public static void Main()
try
TestingMethod();
}
catch(Exception ex)
Console.WriteLine(ex.ToString());
public static void TestingMethod()
throw new Exception("Top level 1", new InvalidOperationException("level 2", new TimeoutException("level 3")));