This function needs a better name, `is_current_in_catch_block_for_name` or something, but hopefully less verbose.