Wednesday, April 30, 2008

Exception Handling

In Sharepoint specially when writing WebParts and Event Handlers exception handling should be done properly else you get mixed results. Try to catch exceptions in two parts one is SPException type and another is SecurityException type.

There is a very good tool called as FxCop. This application checks for if the exception haldings and naming conventions are as per Microsoft Stadards or not. Want to know more about FxCop? Go Here!

No comments: