Exception: Interaktor::Failure
- Inherits:
-
StandardError
- Object
- StandardError
- Interaktor::Failure
- Defined in:
- lib/interaktor/failure.rb
Overview
Error raised during interaction failure. The error stores a copy of the failed interaction for debugging purposes.
Instance Attribute Summary collapse
-
#interaction ⇒ Interaktor::Interaction
readonly
The context of this failure instance.
Instance Method Summary collapse
-
#initialize(interaction = nil) ⇒ Failure
constructor
A new instance of Failure.
Constructor Details
#initialize(interaction = nil) ⇒ Failure
Returns a new instance of Failure.
9 10 11 12 |
# File 'lib/interaktor/failure.rb', line 9 def initialize(interaction = nil) @interaction = interaction super end |
Instance Attribute Details
#interaction ⇒ Interaktor::Interaction (readonly)
Returns the context of this failure instance.
5 6 7 |
# File 'lib/interaktor/failure.rb', line 5 def interaction @interaction end |