Sha256: f269daaffc63654d3f9636f35c37909495a447062acc2fd4874b4e7e8ce9ffb9

Contents?: true

Size: 895 Bytes

Versions: 1

Compression:

Stored size: 895 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module HasResult
        module Entities
          class Result
            module Plugins
              module HasJSendStatusAndAttributes
                module Errors
                  class NotExistingAttribute < ::ConvenientService::Error
                    ##
                    # @param attribute [Symbol]
                    # @return [void]
                    #
                    def initialize(attribute:)
                      message = <<~TEXT
                        Data attribute `#{attribute}` does NOT exist. Make sure the corresponding result returns it.
                      TEXT

                      super(message)
                    end
                  end
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
convenient_service-0.12.0 lib/convenient_service/service/plugins/has_result/entities/result/plugins/has_j_send_status_and_attributes/errors.rb