Skip to content

Feb 21: Exception Handling

Learning Objectives

After today's class, you should be able to:

  • Modify an existing method to detect and throw exceptions.
  • Write multiple catch blocks to handle different exception types.
  • Trace the execution of a loop inside a try block and vice versa.

Lesson Outline

Q&A [10 min]

Lab06 [40 min]

Note: Submit Lab06 reflection to Gradescope, not Canvas.

Your To-Do List