Exception: ConvenientService::Common::Plugins::CanHaveUserProvidedEntity::Exceptions::ProtoEntityHasNoConcern

Inherits:
Exception
  • Object
show all
Defined in:
lib/convenient_service/common/plugins/can_have_user_provided_entity/exceptions.rb

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_with_kwargs(proto_entity:) ⇒ Object



26
27
28
29
30
31
32
33
34
35
36
# File 'lib/convenient_service/common/plugins/can_have_user_provided_entity/exceptions.rb', line 26

def initialize_with_kwargs(proto_entity:)
  message = <<~TEXT
    Proto entity `#{proto_entity}` has no concern.

    Have a look at `ConvenientService::Service::Plugins::HasJSendResult::Entities::Result`.

    It is an example of a valid proto entity.
  TEXT

  initialize(message)
end