Exception: Screenplay::ScenarioFailedException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/screenplay/scenario.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scenario, index, actor_name, exception) ⇒ ScenarioFailedException

Returns a new instance of ScenarioFailedException.



8
9
10
11
# File 'lib/screenplay/scenario.rb', line 8

def initialize(scenario, index, actor_name, exception)
	@inner_exception = exception
	super("FAILED: Scenario #{scenario.name}, scene #{index} of #{scenario.size}, actor #{actor_name}: #{exception.message}")
end

Instance Attribute Details

#inner_exceptionObject (readonly)

Returns the value of attribute inner_exception.



6
7
8
# File 'lib/screenplay/scenario.rb', line 6

def inner_exception
  @inner_exception
end