using System;
using System.Threading.Tasks;
public class Program
{
public static async Task FirstMethod()
await SecondMethod();
}
public static Task SecondMethod()
return ThirdMethod();
public static async Task ThirdMethod()
await Task.Delay(1000);
throw new Exception();
public static void Main()
try {
FirstMethod().Wait();
} catch (Exception ex) {
Console.WriteLine(ex);