B4Coder
0%
LessonAbout 7 min

Chapter 11 · Lesson 2 of 5

02. finally, and throwing your own

Throw an exception yourself when a method gets a value it can't use, catch it in the caller, and use finally for what must always run.

Opening the lesson…