When the normal flow of a program is disrupted, an exceptional event occurs. This can be caused by a user, a developer error, or a lack of physical resources. There is a special hierarchy of classes designed to handle different types of exceptional events, and you can also create your own class to handle a case that is unique for your application.
This chapter covers the following topics:
- What is exception handling?
- Checked and unchecked exceptions
- Using the try block as an expression
- Writing your own exception