class Cucumber::Core::Test::Result::Raisable
the step to have that result.
Base class for exceptions that can be raised in a step defintion 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 with_duration(new_duration)
def with_duration(new_duration) self.class.new(message, new_duration, backtrace) end
def with_message(new_message)
def with_message(new_message) self.class.new(new_message, duration, backtrace) end