using System;
public class Program
{
static void SomeMethod()
System.Threading.Thread.Sleep(1000);
throw new OperationCanceledException("cancelled1");
}
public static void Main()
for (var i = 0; i < 10; i++)
try
SomeMethod();
catch (OperationCanceledException)
throw new OperationCanceledException("cancelled2");