Game Development Reference
While you could build your own exception handling manager that offers many fancy
features that other developers would be envious of, it is important to remember
that software development is about building software that meets business needs
and doing so in a timely manner. Reinventing the wheel is generally ridiculed, so
there are a couple of components available from Microsoft that can be used when
there is a need for advanced exception handling support.
The first component is the Exception Handling Application Block that offers the
ability to create a consistent strategy for processing exceptions on all architectural
layers of an application. This component is not limited to service boundaries,
which is an important feature for distributed architectures. Several tools are
included with the installation that help you create and configure exception poli-
cies for your application. The Exception Handling Application Block can be down-
loaded from MSDN.
The other component is the Logging and Instrumentation Application Block,
which allows for .NET applications to be built for manageability in a production
environment. Applications can leverage existing logging, tracing, and eventing
mechanisms built into Windows, and can issue a variety of warnings, errors,
audits, diagnostic events, and business-specific events. This component also pro-
vides statistics like average execution time for a process or service. This component
can also be downloaded from MSDN.