class Cucumber::Formatter::LegacyApi::Adapter::LegacyResultBuilder

def step_exception(step, configuration)

def step_exception(step, configuration)
  return filtered_step_exception(step) if @exception
  return nil unless @status == :undefined && configuration.strict.strict?(:undefined)
  @exception = Cucumber::Undefined.from(@result, step.text)
  @exception.backtrace << step.backtrace_line
  filtered_step_exception(step)
end