Exception: Dry::Monads::ConstructorNotAppliedError

Inherits:
NoMethodError
  • Object
show all
Defined in:
lib/dry/monads/errors.rb

Overview

Improper use of None

Instance Method Summary collapse

Constructor Details

#initialize(method_name, constructor_name) ⇒ ConstructorNotAppliedError

Returns a new instance of ConstructorNotAppliedError.



24
25
26
27
28
29
# File 'lib/dry/monads/errors.rb', line 24

def initialize(method_name, constructor_name)
  super(
    "For calling .#{method_name} on #{constructor_name}() build a value "\
    "by appending parens: #{constructor_name}()"
  )
end