using System;
using System.Threading.Tasks;
class Program
{
static async Task Main(string[] args)
try
await OutterMethod();
}
catch (Exception ex)
Console.WriteLine(ex);
static Task OutterMethod()
return InnerMethod();
static async Task InnerMethod()
await Task.Delay(0);
throw new Exception("YES!!!");