def handle_exception(example)
      if example.instance_variable_get(:@exception)
        if metadata[:background]
          skip_examples_after(example, ancestors[1])
        else
          skip_examples_after(example)
        end
      end
    end
def handle_exception(example)
      if example.instance_variable_get(:@exception)
        if metadata[:background]
          skip_examples_after(example, ancestors[1])
        else
          skip_examples_after(example)
        end
      end
    end
If the example failed or got an error, then skip the dependent examples.
 If the failure occurred in a background example group, then skip all
 examples in the feature.

 @param [Example] example the current example
 @api private