Exception: ConvenientService::Common::Plugins::HasAroundCallbacks::Exceptions::AroundCallbackChainIsNotContinued

Inherits:
Exception
  • Object
show all
Defined in:
lib/convenient_service/common/plugins/has_around_callbacks/exceptions.rb

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_with_kwargs(callback:) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/convenient_service/common/plugins/has_around_callbacks/exceptions.rb', line 9

def initialize_with_kwargs(callback:)
  message = "    Around callback chain is NOT continued from `\#{callback.block.source_location}`.\n\n    Did you forget to call `chain.yield`? For example:\n\n    around :result do |chain|\n      # ...\n      chain.yield\n      # ...\n    end\n  TEXT\n\n  initialize(message)\nend\n"