O'Reilly logo

Visual C# 2010: How to Program, Fourth Edition by Harvey Deitel, Paul Deitel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 13. Exception Handling: A Deeper Look

 

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
 

O! throw away the worser part of it, And live the purer with the other half.

 
 --William Shakespeare
 

If they’re running and they don’t look where they’re going I have to come out from somewhere and catch them.

 
 --J. D. Salinger
<feature> <supertitle>Objectives</supertitle>

In this chapter you’ll learn:

<objective>

What exceptions are and how they’re handled.

</objective>
<objective>

When to use exception handling.

</objective>
<objective>

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

</objective>
<objective>

To throw exceptions to indicate ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required