[source,csharp,diff-id=1,diff-type=compliant]
----
try {}
catch (Exception ex)
{
  logger.LogError(ex.Message);
  // Handle exception
}
----

or

[source,csharp]
----
try {}
catch (Exception ex) 
{
  // ...
  throw;
}
----