using System.Threading.Tasks;
public static void Main()
new Imp().MethodThrowsException("").GetAwaiter().GetResult();
Console.WriteLine(ex.Message);
public async void MethodThrowsException(string test){
if(string.IsNullOrWhiteSpace(test))
throw new NotImplementedException();
await Task.CompletedTask;