November 2017
Intermediate to advanced
1410 pages
40h 27m
English
© Andrew Troelsen and Philip Japikse 2017
Andrew Troelsen and Philip Japikse, Pro C# 7, https://doi.org/10.1007/978-1-4842-3018-3_7
Andrew Troelsen1 and Philip Japikse2
(1)Minneapolis, Minnesota, USA
(2)West Chester, Ohio, USA
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, ...
Read now
Unlock full access