Sha256: 676d072898f0d82eebf7054672315ae85e314e876f01acc36f4a1252b3846709

Contents?: true

Size: 744 Bytes

Versions: 4

Compression:

Stored size: 744 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Common
    module Plugins
      module HasAroundCallbacks
        module Exceptions
          class AroundCallbackChainIsNotContinued < ::ConvenientService::Exception
            def initialize_with_kwargs(callback:)
              message = <<~TEXT
                Around callback chain is NOT continued from `#{callback.block.source_location}`.

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

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

              initialize(message)
            end
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
convenient_service-0.19.1 lib/convenient_service/common/plugins/has_around_callbacks/exceptions.rb
convenient_service-0.19.0 lib/convenient_service/common/plugins/has_around_callbacks/exceptions.rb
convenient_service-0.18.0 lib/convenient_service/common/plugins/has_around_callbacks/exceptions.rb
convenient_service-0.17.0 lib/convenient_service/common/plugins/has_around_callbacks/exceptions.rb