The
FINALLY block contains code that must be executed at the conclusion of the block (or block iteration) whether the associated block completed successfully or raised error. The
FINALLY block is an important feature for structured error handling, but it can be just as useful with traditional error handling. Using
FINALLY blocks with traditional error handling does not alter the behavior of the traditional error handling model.