class Cucumber::Core::Test::Result::Raisable

Base class for exceptions that can be raised in a step definition causing the step to have that result.

def initialize(message = '', duration = UnknownDuration.new, backtrace = nil)

def initialize(message = '', duration = UnknownDuration.new, backtrace = nil)
  @message = message
  @duration = duration
  super(message)
  set_backtrace(backtrace) if backtrace
end

def ok?(strict: StrictConfiguration.new)

def ok?(strict: StrictConfiguration.new)
  self.class.ok?(strict: strict.strict?(to_sym))
end

def with_appended_backtrace(step)

def with_appended_backtrace(step)
  return self unless step.respond_to?(:backtrace_line)
  set_backtrace([]) unless backtrace
  backtrace << step.backtrace_line
  self
end

def with_duration(new_duration)

def with_duration(new_duration)
  self.class.new(message, new_duration, backtrace)
end

def with_filtered_backtrace(filter)

def with_filtered_backtrace(filter)
  return self unless backtrace
  filter.new(dup).exception
end

def with_message(new_message)

def with_message(new_message)
  self.class.new(new_message, duration, backtrace)
end