Exception: Dry::Effects::Errors::InvalidValueError Private

Inherits:
ArgumentError
  • Object
show all
Includes:
Error
Defined in:
lib/dry/effects/errors.rb

Overview

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

State value has invalid type

Instance Method Summary collapse

Constructor Details

#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