Understanding Structured
Exception Handling
T
he point of this chapter is to understand how to handle runtime anomalies in your C# code base
through the use of
structured exception handling. Not only will you learn about the C# keywords
that allow you to handle such matters (try, catch, throw, finally), but you will also come to under-
stand the distinction between application-level and system-level exceptions and learn the role of
the System.Exception base class. This discussion will also provide a lead-in to the topic of building
custom exceptions, as well as how to leverage the exception-centric debugging tools of Visual
Studio 2008.
Do'stlaringiz bilan baham: