Sha256: a31bf1aeb7257a9d51519e5537a1c7e04b7d3cbd76aa63d092f03f2d9a412fe9

Contents?: true

Size: 719 Bytes

Versions: 1

Compression:

Stored size: 719 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Common
    module Plugins
      module HasAroundCallbacks
        module Errors
          class AroundCallbackChainIsNotContinued < ::ConvenientService::Error
            def initialize(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

              super(message)
            end
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
convenient_service-0.12.0 lib/convenient_service/common/plugins/has_around_callbacks/errors.rb