Exception: Dry::Initializer::TypeConstraintError
- Inherits:
-
TypeError
- Object
- TypeError
- Dry::Initializer::TypeConstraintError
- Defined in:
- lib/dry/initializer/exceptions/type_constraint_error.rb
Instance Method Summary collapse
-
#initialize(name, type) ⇒ TypeConstraintError
constructor
A new instance of TypeConstraintError.
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 |