Method: Dry::Effects::Errors::InvalidValueError#initialize

Defined in:
lib/dry/effects/errors.rb

#initialize(value, scope) ⇒ InvalidValueError

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of InvalidValueError.



81
82
83
# File 'lib/dry/effects/errors.rb', line 81

def initialize(value, scope)
  super("#{value.inspect} is invalid and cannot be assigned to #{scope}")
end