Sha256: 262437e8d0c190825cee8cafbadadace951c13e434d36eccccab3a4e832aa2dd

Contents?: true

Size: 242 Bytes

Versions: 6

Compression:

Stored size: 242 Bytes

Contents

class Dry::Initializer::Errors::TypeConstraintError < TypeError
  def initialize(name, type)
    super "#{type} is inacceptable constraint for the argument '#{name}'." \
          " Use either plain Ruby module/class, or dry-type."
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dry-initializer-0.3.3 lib/dry/initializer/errors/type_constraint_error.rb
dry-initializer-0.3.2 lib/dry/initializer/errors/type_constraint_error.rb
dry-initializer-0.3.1 lib/dry/initializer/errors/type_constraint_error.rb
dry-initializer-0.3.0 lib/dry/initializer/errors/type_constraint_error.rb
dry-initializer-0.2.1 lib/dry/initializer/errors/type_constraint_error.rb
dry-initializer-0.2.0 lib/dry/initializer/errors/type_constraint_error.rb