Sha256: b01a998eb8b3b70ff11e06d4e174afb0c36501cca613c818bbac8979e691309b

Contents?: true

Size: 470 Bytes

Versions: 10

Compression:

Stored size: 470 Bytes

Contents

module Dry
  module Protocol
    class NotImplemented < StandardError
      def initialize(type, proto, impl)
        super case type
              when :protocol
                "Protocol “#{proto}” is not implemented for “#{impl}”."
              when :method
                "Protocol “#{proto}” does not declare method “#{impl}”."
              else
                "Protocol “#{proto}” is invalid."
              end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dry-behaviour-0.6.0 lib/dry/errors/not_implemented.rb
dry-behaviour-0.5.2 lib/dry/errors/not_implemented.rb
dry-behaviour-0.5.1 lib/dry/errors/not_implemented.rb
dry-behaviour-0.5.0 lib/dry/errors/not_implemented.rb
dry-behaviour-0.4.2 lib/dry/errors/not_implemented.rb
dry-behaviour-0.4.1 lib/dry/errors/not_implemented.rb
dry-behaviour-0.4.0 lib/dry/errors/not_implemented.rb
dry-behaviour-0.3.1 lib/dry/errors/not_implemented.rb
dry-behaviour-0.3.0 lib/dry/errors/not_implemented.rb
dry-behaviour-0.2.2 lib/dry/errors/not_implemented.rb