Monthly Archives: November 2010
There are a few mistakes that’s really common when it comes to exception handling and I though that I should write a small entry about them. Continue reading
Update I’ve come up with a better localization method for MVC3. Read about it here. Original article The built in localization support in DataAnnotations is a bit hard to work with. You are supposed to do add the ResourceManager to … Continue reading
Microsoft added ApplicationException with the idea that all exceptions that you made should derive it. Fair point, your should be able to handle your own exceptions, right? The problem is what nobody used it and therefore Microsoft changed it’s recommendation … Continue reading
ms can generate complete test classes for you that test and access all methods and properties, no matter if they are private or public. Isn’t that awesome? Well no. Let me do a statement first: I’m not fond of auto-generated … Continue reading
Ohhh, I’ve recently seen one to many application where the developers try to be safe by catching exceptions all over the place. It can be everything from a small simple method that doesn’t throw that many exceptions to a large method with multiple try/catch statements. Most of those catch blocks just logs the exception and rethrow it.
This post discusses how those problems can be solved. Continue reading