Exception: Dry::Effects::Errors::MissingStateError Private

Inherits:
UnhandledEffectError show all
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.

No state handler

Instance Attribute Summary

Attributes inherited from UnhandledEffectError

#effect

Instance Method Summary collapse

Constructor Details

#initialize(effect) ⇒ MissingStateError

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 MissingStateError.



33
34
35
36
37
38
# File 'lib/dry/effects/errors.rb', line 33

def initialize(effect)
  message = "Value of +#{effect.scope}+ is not set, " \
            "you need to provide value with an effect handler"

  super(effect, message)
end