Exception: ConvenientService::Service::Plugins::ForbidsConvenientServiceEntitiesAsConstructorArguments::Exceptions::StatusPassedAsConstructorArgument
- Inherits:
-
Exception
- Object
- StandardError
- Exception
- ConvenientService::Service::Plugins::ForbidsConvenientServiceEntitiesAsConstructorArguments::Exceptions::StatusPassedAsConstructorArgument
- Defined in:
- lib/convenient_service/service/plugins/forbids_convenient_service_entities_as_constructor_arguments/exceptions.rb
Instance Method Summary collapse
Methods inherited from Exception
Instance Method Details
#initialize_with_kwargs(selector:, service:, status:) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/convenient_service/service/plugins/forbids_convenient_service_entities_as_constructor_arguments/exceptions.rb', line 42 def initialize_with_kwargs(selector:, service:, status:) = <<~TEXT Status of `#{Utils::Class.display_name(status.result.service.class)}` result is passed as constructor argument `#{selector}` to `#{Utils::Class.display_name(service.class)}`. It is an antipattern. It neglects the idea of steps. Please, convert it to symbol or try to reorganize `#{Utils::Class.display_name(service.class)}` service. TEXT initialize() end |