© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
V. SarcarTest Your Skills in C# Programming https://doi.org/10.1007/978-1-4842-8655-5_8

8. Handling Exceptions

Vaskaran Sarcar1  
Garia, Kolkata, West Bengal, India
When you write code for an application, you expect that it will execute as per your plan, but you will often encounter sudden surprises. These surprises may occur through some careless mistakes. For example, you have implemented the wrong logic, or you have ignored some loopholes in the code paths of the program. However, many of the failures are beyond the control of a programmer. Developers call these unwanted situations exceptions. Handling these exceptions is essential when you write an ...

Get Test Your Skills in C# Programming : Review and Analyze Important Features of C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.