APPENDIX B

image

Exception Handling in C#

The topics discussed here extend the discussion of exception handling found in Chapter 8, so this discussion assumes that you have first thoroughly reviewed Chapter 8. The purpose of this appendix is to review Microsoft’s recommendations for exception management and present a few of the exception classes provided by the .NET Framework.

Managing Exceptions

Exceptions are generated when the implicit assumptions made by your programming logic are violated. For example, when a program attempts to connect to a database, it assumes that the database server is up and running on the network. If the server can’t be ...

Get Beginning C# Object-Oriented Programming, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.