Sha256: a2f3cbe09d89b97fe8ea560dd3674e955bed2f1fe95f2b75264d7fc927084f33

Contents?: true

Size: 194 Bytes

Versions: 9

Compression:

Stored size: 194 Bytes

Contents

module Dry::Initializer
  class TypeConstraintError < TypeError
    def initialize(name, type)
      super "#{type} constraint for argument '#{name}' doesn't respond to #call"
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
dry-initializer-1.4.1 lib/dry/initializer/exceptions/type_constraint_error.rb
dry-initializer-1.4.0 lib/dry/initializer/exceptions/type_constraint_error.rb
dry-initializer-1.3.0 lib/dry/initializer/exceptions/type_constraint_error.rb
dry-initializer-1.2.0 lib/dry/initializer/exceptions/type_constraint_error.rb
dry-initializer-1.1.3 lib/dry/initializer/exceptions/type_constraint_error.rb
dry-initializer-1.1.2 lib/dry/initializer/exceptions/type_constraint_error.rb
dry-initializer-1.1.1 lib/dry/initializer/exceptions/type_constraint_error.rb
dry-initializer-1.1.0 lib/dry/initializer/exceptions/type_constraint_error.rb
dry-initializer-1.0.0 lib/dry/initializer/exceptions/type_constraint_error.rb