Cover  by Poornachandra Sarang

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

O'Reilly logo

image

CHAPTER

8

Exception Handling

imageooking at Murphy’s Law, “If anything simply cannot go wrong, it will anyway,” you know that you should always prepare yourself for the worst-case scenario. Things don’t always turn out how you expect them to, and if anything can go wrong, it probably will. When this happens in real life, there may not be a remedial solution. Fortunately, in programming, if anything goes wrong, there is always a remedial action for you to take—this is called exception handling. When something goes wrong in your program, you say that an ...

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