Exception: ConvenientService::Common::Plugins::CanHaveUserProvidedEntity::Exceptions::ProtoEntityHasNoName

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



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/convenient_service/common/plugins/can_have_user_provided_entity/exceptions.rb', line 9

def initialize_with_kwargs(proto_entity:)
  message = "    Proto entity `\#{proto_entity}` has no name.\n\n    In other words:\n\n      proto_entity.name\n      # => nil\n\n    NOTE: Anonymous classes do NOT have names. Are you passing an anonymous class?\n  TEXT\n\n  initialize(message)\nend\n"