Exception: ConvenientService::Core::Entities::Config::Exceptions::ConfigIsCommitted

Inherits:
Exception
  • Object
show all
Defined in:
lib/convenient_service/core/entities/config/exceptions.rb

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_with_kwargs(config:) ⇒ void

This method returns an undefined value.



13
14
15
16
17
18
19
20
21
# File 'lib/convenient_service/core/entities/config/exceptions.rb', line 13

def initialize_with_kwargs(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

  initialize(message)
end