Exception: ConvenientService::Service::Plugins::CanHaveFallbacks::Exceptions::ServiceFallbackReturnValueNotSuccess
- Inherits:
- 
      Exception
      
        - Object
- StandardError
- Exception
- ConvenientService::Service::Plugins::CanHaveFallbacks::Exceptions::ServiceFallbackReturnValueNotSuccess
 
- Defined in:
- lib/convenient_service/service/plugins/can_have_fallbacks/exceptions.rb
Instance Method Summary collapse
Methods inherited from Exception
Instance Method Details
#initialize_with_kwargs(service:, result:, status:) ⇒ Object
| 35 36 37 38 39 40 41 42 43 44 | # File 'lib/convenient_service/service/plugins/can_have_fallbacks/exceptions.rb', line 35 def initialize_with_kwargs(service:, result:, status:) = <<~TEXT Return value of service `#{service.class}`#{enclose(status, " ")}fallback is NOT a `success`. It is `#{result.status}`. Did you accidentally call `failure` or `error` instead of `success` from the `fallback#{enclose(status, "_")}result` method? TEXT initialize() end |