Exception: ConvenientService::Common::Plugins::CanHaveCallbacks::Exceptions::AroundCallbackChainIsNotContinued Private

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

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_with_kwargs(callback:) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.



21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/convenient_service/common/plugins/can_have_callbacks/exceptions.rb', line 21

def initialize_with_kwargs(callback:)
  message = <<~TEXT
    Around callback chain is NOT continued from `#{callback.source_location_joined_by_colon}`.

    Did you forget to call `chain.yield`? For example:

    around :result do |chain|
      # ...
      chain.yield
      # ...
    end
  TEXT

  initialize(message)
end