Sha256: 61e98ee9ce92dc97e16da790b564ddf60ba8c232ab45897696eaa3b7274654f4
Contents?: true
Size: 1.13 KB
Versions: 4
Compression:
Stored size: 1.13 KB
Contents
# frozen_string_literal: true module ConvenientService module Common module Plugins module CanHaveUserProvidedEntity module Exceptions class ProtoEntityHasNoName < ::ConvenientService::Exception def initialize_with_kwargs(proto_entity:) message = <<~TEXT Proto entity `#{proto_entity}` has no name. In other words: proto_entity.name # => nil NOTE: Anonymous classes do NOT have names. Are you passing an anonymous class? TEXT initialize(message) end end class ProtoEntityHasNoConcern < ::ConvenientService::Exception 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 end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems