Next: Creating exception types
Up: Exceptions
Previous: Introduction
Contents
Upon completion of this section, students will be able to:
- Create their own Exception class.
- Throw an exception.
- Define the three choices you have when a method throws an exception.
- Use try/catch/finally to run a method that may throw an exception.
- Describe the purpose of the finally clause, and when it is run.
- Make better decisions about when to throw exceptions in your code.
Next: Creating exception types
Up: Exceptions
Previous: Introduction
Contents