Sha256: 756e58578c70bd1f2991811f634bd62c3a32d9826de7fad14dbbcc9b00477143

Contents?: true

Size: 717 Bytes

Versions: 14

Compression:

Stored size: 717 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

14 entries across 14 versions & 1 rubygems

Version Path
convenient_service-0.11.0 lib/convenient_service/common/plugins/has_around_callbacks/errors.rb
convenient_service-0.10.1 lib/convenient_service/common/plugins/has_around_callbacks/errors.rb
convenient_service-0.10.0 lib/convenient_service/common/plugins/has_around_callbacks/errors.rb
convenient_service-0.9.0 lib/convenient_service/common/plugins/has_around_callbacks/errors.rb
convenient_service-0.8.0 lib/convenient_service/common/plugins/has_around_callbacks/errors.rb
convenient_service-0.7.0 lib/convenient_service/common/plugins/has_around_callbacks/errors.rb
convenient_service-0.6.0 lib/convenient_service/common/plugins/has_around_callbacks/errors.rb
convenient_service-0.5.0 lib/convenient_service/common/plugins/has_around_callbacks/errors.rb
convenient_service-0.4.0 lib/convenient_service/common/plugins/has_around_callbacks/errors.rb
convenient_service-0.3.1 lib/convenient_service/common/plugins/has_around_callbacks/errors.rb
convenient_service-0.3.0 lib/convenient_service/common/plugins/has_around_callbacks/errors.rb
convenient_service-0.2.1 lib/convenient_service/common/plugins/has_around_callbacks/errors.rb
convenient_service-0.2.0 lib/convenient_service/common/plugins/has_around_callbacks/errors.rb
convenient_service-0.1.0 lib/convenient_service/common/plugins/has_around_callbacks/errors.rb