Sha256: a74db7f7b51c37b5d351a67f3bfb313b3ae76497768bfd7c4d341532468032b0

Contents?: true

Size: 811 Bytes

Versions: 14

Compression:

Stored size: 811 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Core
    module Entities
      class Config
        module Errors
          class ConfigIsCommitted < ConvenientService::Error
            ##
            # @param config [ConvenientService::Core::Entities::Config]
            # @return [void]
            #
            def initialize(config:)
              message = <<~TEXT
                Config for `#{config.klass}` is already committed. Only uncommitted configs can be modified.

                Did you accidentally call `concerns(&configuration_block)` or `middlewares(method, scope: scope, &configuration_block)` after using any plugin, after calling `commit_config!`?
              TEXT

              super(message)
            end
          end
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
convenient_service-0.11.0 lib/convenient_service/core/entities/config/errors.rb
convenient_service-0.10.1 lib/convenient_service/core/entities/config/errors.rb
convenient_service-0.10.0 lib/convenient_service/core/entities/config/errors.rb
convenient_service-0.9.0 lib/convenient_service/core/entities/config/errors.rb
convenient_service-0.8.0 lib/convenient_service/core/entities/config/errors.rb
convenient_service-0.7.0 lib/convenient_service/core/entities/config/errors.rb
convenient_service-0.6.0 lib/convenient_service/core/entities/config/errors.rb
convenient_service-0.5.0 lib/convenient_service/core/entities/config/errors.rb
convenient_service-0.4.0 lib/convenient_service/core/entities/config/errors.rb
convenient_service-0.3.1 lib/convenient_service/core/entities/config/errors.rb
convenient_service-0.3.0 lib/convenient_service/core/entities/config/errors.rb
convenient_service-0.2.1 lib/convenient_service/core/entities/config/errors.rb
convenient_service-0.2.0 lib/convenient_service/core/entities/config/errors.rb
convenient_service-0.1.0 lib/convenient_service/core/entities/config/errors.rb