rspec/rules/S2139/csharp/compliant.adoc

21 lines
222 B
Plaintext
Raw Normal View History

2024-03-08 17:24:42 +01:00
[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;
}
----