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

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

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

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

def ok?(be_strict = StrictConfiguration.new)

def ok?(be_strict = StrictConfiguration.new)
  self.class.ok?(be_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