Exception: Dry::Effects::Errors::UndefinedStateError Private
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Dry::Effects::Errors::UndefinedStateError
- 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
-
#initialize(effect) ⇒ UndefinedStateError
constructor
private
A new instance of UndefinedStateError.
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) = "+#{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() end |