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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2017 Andrew Troelsen and Philip Japikse
About this chapter
Cite this chapter
Troelsen, A., Japikse, P. (2017). Understanding Structured Exception Handling. In: Pro C# 7. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3018-3_7
Download citation
DOI: https://doi.org/10.1007/978-1-4842-3018-3_7
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-3017-6
Online ISBN: 978-1-4842-3018-3
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)