Exception: ConvenientService::Service::Plugins::CanNotBeInherited::Exceptions::ServiceIsInherited Private
- Inherits:
-
Exception
- Object
- StandardError
- Exception
- ConvenientService::Service::Plugins::CanNotBeInherited::Exceptions::ServiceIsInherited
- Defined in:
- lib/convenient_service/service/plugins/can_not_be_inherited/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(service_class:, sub_service_class:) ⇒ 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.
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/convenient_service/service/plugins/can_not_be_inherited/exceptions.rb', line 14 def initialize_with_kwargs(service_class:, sub_service_class:) = <<~TEXT Service `#{Utils::Class.display_name(sub_service_class)}` is inherited from `#{Utils::Class.display_name(service_class)}`. It is an antipattern. It neglects the idea of steps. Please, try to reorganize `#{Utils::Class.display_name(sub_service_class)}` service. TEXT initialize() end |