Exception: Dry::Initializer::TypeConstraintError

Inherits:
TypeError
  • Object
show all
Defined in:
lib/dry/initializer/exceptions/type_constraint_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, type) ⇒ TypeConstraintError



3
4
5
# File 'lib/dry/initializer/exceptions/type_constraint_error.rb', line 3

def initialize(name, type)
  super "#{type} constraint for argument '#{name}' doesn't respond to #call"
end