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.



19
20
21
22
23
24
# File 'lib/dry/monads/errors.rb', line 19

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