class Cucumber::Formatter::BacktraceFilter

def exception

def exception
  return @exception if ::Cucumber.use_full_backtrace
  pwd_pattern = /#{::Regexp.escape(::Dir.pwd)}\//m
  backtrace = @exception.backtrace.map { |line| line.gsub(pwd_pattern, './') }
  filtered = (backtrace || []).reject do |line|
    line =~ BACKTRACE_FILTER_PATTERNS
  end
  if ::ENV['CUCUMBER_TRUNCATE_OUTPUT']
    # Strip off file locations
    filtered = filtered.map do |line|
      line =~ /(.*):in `/ ? Regexp.last_match(1) : line
    end
  end
  @exception.set_backtrace(filtered)
  @exception
end

def initialize(exception)

def initialize(exception)
  @exception = exception
end