Exception: Screenplay::ScenarioFailedException
- Inherits:
-
StandardError
- Object
- StandardError
- Screenplay::ScenarioFailedException
- Defined in:
- lib/screenplay/scenario.rb
Instance Attribute Summary collapse
-
#inner_exception ⇒ Object
readonly
Returns the value of attribute inner_exception.
Instance Method Summary collapse
-
#initialize(scenario, index, actor_name, exception) ⇒ ScenarioFailedException
constructor
A new instance of ScenarioFailedException.
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.}") end |
Instance Attribute Details
#inner_exception ⇒ Object (readonly)
Returns the value of attribute inner_exception.
6 7 8 |
# File 'lib/screenplay/scenario.rb', line 6 def inner_exception @inner_exception end |