Good Read: Design Guidelines for Exceptions

Published 03 December 08 02:55 PM | urig

I've often wished for real world guidance on exceptions handling in .net applications. Deciding on a strategy for throwing and catching exceptions is tricky. On the one hand exceptions are said to be the better way of handling execution errors in code. On the other hand, exceptions bring with them the overhead of instantiating them and throwing them which could negatively affect performance.

A while ago I've found some good advice in Microsoft's own Design Guidelines for Exceptions section in the MSDN Library. Particularly useful is the page on Exceptions and Performance

The whole thing isn't very long and contains a few humbling surprises. I recommend it.

Comments

# Good Read: Design Guidelines for Exceptions - urig - Tidbits from … said on December 3, 2008 04:10 PM:

Pingback from  Good Read: Design Guidelines for Exceptions - urig - Tidbits from …

# Good Read: Design Guidelines for Exceptions - urig - Tidbits from … said on December 3, 2008 05:00 PM:

Pingback from  Good Read: Design Guidelines for Exceptions - urig - Tidbits from …