Exception: Dry::Effects::Errors::UndefinedStateError Private

Inherits:
RuntimeError
  • 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.

Uninitialized state accessed

Instance Method Summary collapse

Constructor Details

#initialize(effect) ⇒ UndefinedStateError

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



47
48
49
50
51
52
53
# File 'lib/dry/effects/errors.rb', line 47

def initialize(effect)
  message = "+#{effect.scope}+ is not defined, you need to assign it first " \
            "by using a writer, passing initial value to the handler, or " \
            "providing a fallback value"

  super(message)
end