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



31
32
33
34
35
36
37
38
39
40
41
# File 'lib/convenient_service/common/plugins/can_have_user_provided_entity/exceptions.rb', line 31

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