Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 13. Exception Handling

13. Exception Handling

Objectives

In this chapter you’ll learn:

  • What exceptions are and how they’re handled.

  • When to use exception handling.

  • To use try blocks to delimit code in which exceptions might occur.

  • To throw exceptions to indicate a problem.

  • To use catch blocks to specify exception handlers.

  • To use the finally block to release resources.

  • The .NET exception class hierarchy.

  • Exception properties.

  • To create user-defined exceptions.

It is common sense to take a method and try it. If it fails, admit it frankly and try another. But above all, try something.

Franklin Delano Roosevelt


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint