Chapter 16. Exception Handling
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.
If they’re running and they don’t look where they’re going I have to come out from somewhere and catch them.
|--Jerome David Salinger|
O infinite virtue! com’st thou smiling from the world’s great snare uncaught?
I never forget a face, but in your case I’ll make an exception.
In this chapter you’ll learn:
What exceptions are and when to use them.
throwto detect, handle and indicate exceptions, respectively. ...