Advertisement

Understanding Structured Exception Handling

  • Andrew Troelsen
  • Philip Japikse

Abstract

In this chapter, you will learn how to handle runtime anomalies in your C# code through the use of structured exception handling. Not only will you examine the C# keywords that allow you to handle such matters (try, catch, throw, finally, when), but you will also come to understand the distinction between application-level and system-level exceptions, as well as the role of the System.Exception base class. This discussion will lead into the topic of building custom exceptions and, finally, to a quick look at some exception-centric debugging tools of Visual Studio.

Keywords

Base Class Visual Studio Runtime Error Static Void Void Accelerate 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Andrew Troelsen and Philip Japikse 2015

Authors and Affiliations

  • Andrew Troelsen
    • 1
  • Philip Japikse
    • 1
  1. 1.MinneapolisUSA

Personalised recommendations