I have a catch block like below:
catch (Exception e)
{
connection.Close();
return null;
}
I get a warning saying ‘e’ is not being used. I don’t want to use it. But if I remove it I get an error saying “class type expected”. What’s to be done?
1 Answer