Author: nestor
Date: 2007-09-01 14:34:52 -0400 (Sat, 01 Sep 2007)
New Revision: 85176
Modified:
trunk/cecil/gendarme/rules/Gendarme.Rules.Exceptions/ChangeLog
trunk/cecil/gendarme/rules/Gendarme.Rules.Exceptions/Gendarme.Rules.Exceptions.xml.in
Log:
Merging some work of the summer of code 2007. Adding the rule information for
the new rule in the xml file.
* Gendarme.Rules.Exceptions.xml.in: Added the rule information for
DontSwallowErrorsCatchingNonSpecificExceptions rule in the xml
file.
Modified: trunk/cecil/gendarme/rules/Gendarme.Rules.Exceptions/ChangeLog
===================================================================
--- trunk/cecil/gendarme/rules/Gendarme.Rules.Exceptions/ChangeLog
2007-09-01 18:21:33 UTC (rev 85175)
+++ trunk/cecil/gendarme/rules/Gendarme.Rules.Exceptions/ChangeLog
2007-09-01 18:34:52 UTC (rev 85176)
@@ -1,5 +1,10 @@
2007-09-01 Nestor Salceda <[EMAIL PROTECTED]>
+
+ * Gendarme.Rules.Exceptions.xml.in: Added the rule information for
+ DontSwallowErrorsCatchingNonSpecificExceptions rule in the xml file.
+2007-09-01 Nestor Salceda <[EMAIL PROTECTED]>
+
* Makefile.am: Added the sources of new rule and unit tests.
* DontSwallowErrorsCatchingNonspecificExceptionsRule.cs: New. Rule for
check error swallowing.
Modified:
trunk/cecil/gendarme/rules/Gendarme.Rules.Exceptions/Gendarme.Rules.Exceptions.xml.in
===================================================================
---
trunk/cecil/gendarme/rules/Gendarme.Rules.Exceptions/Gendarme.Rules.Exceptions.xml.in
2007-09-01 18:21:33 UTC (rev 85175)
+++
trunk/cecil/gendarme/rules/Gendarme.Rules.Exceptions/Gendarme.Rules.Exceptions.xml.in
2007-09-01 18:34:52 UTC (rev 85176)
@@ -5,4 +5,10 @@
<problem>A catch block in method or property '{0}' throws the
caught exception.</problem>
<solution>If you need to throw the exception caught by the
catch block, use 'throw;' instead of 'throw ex;'</solution>
</rule>
+ <rule Name="DontSwallowErrorsCatchingNonspecificExceptionsRule"
+
Type="Gendarme.Rules.Exceptions.DontSwallowErrorsCatchingNonspecificExceptionsRule,
Gendarme.Rules.Exceptions, [EMAIL PROTECTED]@, Culture=neutral,
PublicKeyToken=null"
+ Uri="">
+ <problem>The method '{0}' catch a nonspecific
exception.</problem>
+ <solution>You can rethrow the original exception for don't
destroy the stacktrace, or you can handle the specific exceptions.</solution>
+ </rule>
</rules>
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches