Friday, July 19, 2013

Rethrow an exception in a C# catch block.

try
{
   DoSomething();
}
catch (Exception exception)
{
   log.Fatal("Oh no!", exception);
   throw;
}

No comments:

Post a Comment