[Mono-list] "Empty catch" rule proposal for Gendarme?

"Andrés G. Aragoneses [ knocte ] "Andrés G. Aragoneses [ knocte ]
Wed Mar 28 12:47:19 EDT 2007


Hello. I'm just a little upset of the many times I have to spend debug 
sessions because of empty catch blocks (swallowing any exception that 
the programmer never could imagine...). Then I was just wondering if it 
was worth to create a rule for Gendarme that warned about it:

catch
{
}

OR:

catch(Exception)
{
}

OR:

catch(Exception ex)
{
}

Regards,

	Andrés	[ knocte ]

-- 



More information about the Mono-list mailing list