Exception: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step::Plugins::RaisesOnNotResultReturnValue::Exceptions::ReturnValueNotKindOfResult
- Inherits:
-
Exception
- Object
- StandardError
- Exception
- ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step::Plugins::RaisesOnNotResultReturnValue::Exceptions::ReturnValueNotKindOfResult
- Defined in:
- lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/raises_on_not_result_return_value/exceptions.rb
Instance Method Summary collapse
Methods inherited from Exception
Instance Method Details
#initialize_with_kwargs(step:, result:) ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/raises_on_not_result_return_value/exceptions.rb', line 13 def initialize_with_kwargs(step:, result:) = <<~TEXT Return value of step `#{step.printable_action}` is NOT a `Result`. It is `#{result.class}`. Did you forget to call `success`, `failure`, or `error`? TEXT initialize() end |