Sha256: f6feac2f6261e896acd86b2d75e07132ae90f08d80ff94b8b2f49fbf78365257
Contents?: true
Size: 1.1 KB
Versions: 4
Compression:
Stored size: 1.1 KB
Contents
# frozen_string_literal: true module ConvenientService module Common module Plugins module CanHaveUserProvidedEntity module Exceptions class ProtoEntityHasNoName < ::ConvenientService::Exception def initialize(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 super(message) end end class ProtoEntityHasNoConcern < ::ConvenientService::Exception def initialize(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 super(message) end end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems