What an Exception Is
An exception is some bad news that you get told about during the execution of your program. There are many reasons for this. Your database could be down, and then the application that is trying to connect to it would not be able to do what it wants. Network problems are common causes of exceptions. Your program could rely on a file that cannot be found, or a user could enter something that is just ridiculous. You have to deal with these problems because they happen.
An exception is one result of poorly written code. If you write quick and dirty code, you should expect to have problems later. A good example of this is, oh, anything written in VB (which explains the comparatively large number of VB programming jobs on the planet). ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access