Class: Interactify::Contracts::MismatchingPromiseError
- Inherits:
-
Failure
- Object
- Interactor::Failure
- Failure
- Interactify::Contracts::MismatchingPromiseError
- Defined in:
- lib/interactify/contracts/mismatching_promise_error.rb
Instance Method Summary collapse
-
#initialize(interactor, promising, promised_keys) ⇒ MismatchingPromiseError
constructor
A new instance of MismatchingPromiseError.
Constructor Details
#initialize(interactor, promising, promised_keys) ⇒ MismatchingPromiseError
Returns a new instance of MismatchingPromiseError.
8 9 10 11 12 13 14 15 16 |
# File 'lib/interactify/contracts/mismatching_promise_error.rb', line 8 def initialize(interactor, promising, promised_keys) super <<~MESSAGE.chomp #{interactor} does not promise: #{promising.inspect} Actual promises are: #{promised_keys.inspect} MESSAGE end |