I am getting a message on Sonar:
Handle the exception or explain in a comment why it can be ignored.
How do I get rid off this warning by providing a comment explaining to ignore this?
I am using C# for coding and my catch block is catch {}
catch
{
// handled globally
}
finally
{
connection.Close()
}
Catch code and on finally block I have added some code to close connection.