Exceptions and Assertions
Mark Treadwell has a great post with lots of sources regarding exception management
- MSJ, Matt Pietrek: A Crash Course in Structured Exception Handling
- MSDN Mag, Matt Pietrek: Under the Hood - New Vectored Exception Handling in Windows XP
- Blog, Chris Brumme: The Exception Model
- PAG, MSDN, Exception Management Architecture Guide [article only]
- PAG, MSDN, Exception Management Application Block for .NET [article only]
- Cat Francis, MSDN, Introduction to Exception Handling in Visual Basic .NET [article only]
- Eric Gunnerson, MSDN, Writing Exceptional Code [article only]
- Eric Gunnerson, MSDN, The Well-Tempered Exception [article and code: exception.exe]
- MSDN Library, .NET Framework Class Library, Exception Class
- MSDN Library, .NET Framework SDK, .NET Framework Developer's Guide, Handling and Throwing Exceptions, with the following subsections:
- Exceptions Overview - Provides an overview of common language runtime exceptions
- Exception Class - Describes the elements of an exception object
- Exception Hierarchy - Describes the exceptions that most exceptions derive from
- Exception Handling Fundamentals - Explains how to handle exceptions using Catch, Throw, and Finally statements
- Using the Try/Catch Block to Catch Exceptions - Describes how to use the Try/Catch block to handle exceptions
- Using Specific Exceptions in a Catch Block - Describes how to catch specific exceptions
- Throwing Exceptions - Describes how to throw exceptions as well as how to catch and then re-throw exceptions
- Using User-Defined Exceptions - Describes how to create your own exception classes
- Using User-Filtered Exceptions - Describes how to set up filtered exceptions
- Using the Finally Block - Explains how to use the Finally statement in an exception block
- Best Practices for Handling Exceptions - Describes suggested methods for handling exceptions
- Handling COM Interop Exceptions - Describes how to handle exceptions thrown and caught in unmanaged code
- Jesse Liberty, MSDN Magazine, December 2002, .NET Exceptions: Make the Transition from Traditional Visual Basic Error Handling to the Object-Oriented Model in .NET [article only]
- Wesner Moise, Assert Enhancements [article and code, assert_src.zip]
- Kevin McFarlane, Code Project, Managing Unhandled Exceptions in .NET [article and code]
- Marc Clifton, Code Project, A Treatise on Using Debug and Trace classes, including Exception Handling [article and code, DebugTreatise_src.zip]
- Jason Bock, Creating a Reusable Error Dialog for .NET Applications [article and code]
- Kathleen Dollard, Visual Studio Magazine, Display Dissected Exceptions [article and code]