Chapter 6. Managing errors and exceptions

After completing this chapter, you will be able to:

Image Handle exceptions by using the try, catch, and finally statements.

Image Control integer overflow by using the checked and unchecked keywords.

Image Raise exceptions from your own methods by using the throw keyword.

Image Ensure that code always runs, even after an exception ...

Get Microsoft Visual C# Step by Step, 8th Edition 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.