Check that you do not rely on state changes in the finally block, because the state change will not occur before the exception filter executes. You can find solutions to these questions in the individual building chapters in Part III of this guide. We use an If / Else statement to decide which color we want returned by the function.