class Dry::Effects::Errors::UndefinedStateError

Uninitialized state accessed

@api private

Public Class Methods

new(effect) click to toggle source
Calls superclass method
# 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