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

Inherits:
Exception
  • Object
show all
Defined in:
lib/convenient_service/common/plugins/can_have_user_provided_entity/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.

Since:

  • 1.0.0

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_with_kwargs(proto_entity:) ⇒ 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.

Since:

  • 1.0.0



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