Exception: ConvenientService::Service::Plugins::ForbidsConvenientServiceEntitiesAsConstructorArguments::Exceptions::FeaturePassedAsConstructorArgument Private
- Inherits:
-
Exception
- Object
- StandardError
- Exception
- ConvenientService::Service::Plugins::ForbidsConvenientServiceEntitiesAsConstructorArguments::Exceptions::FeaturePassedAsConstructorArgument
- Defined in:
- lib/convenient_service/service/plugins/forbids_convenient_service_entities_as_constructor_arguments/exceptions.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
Methods inherited from Exception
Instance Method Details
#initialize_with_kwargs(selector:, service:, feature:) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/convenient_service/service/plugins/forbids_convenient_service_entities_as_constructor_arguments/exceptions.rb', line 98 def initialize_with_kwargs(selector:, service:, feature:) = <<~TEXT Feature `#{Utils::Class.display_name(feature.class)}` is passed as constructor argument `#{selector}` to `#{Utils::Class.display_name(service.class)}`. It is an antipattern. It neglects the idea of steps. Please, try to reorganize `#{Utils::Class.display_name(service.class)}` service. TEXT initialize() end |