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