Exception: Dry::Monads::InvalidFailureTypeError

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

Overview

An error thrown on returning a Failure of unknown type.

Instance Method Summary collapse

Constructor Details

#initialize(failure) ⇒ InvalidFailureTypeError

Returns a new instance of InvalidFailureTypeError.



12
13
14
# File 'lib/dry/monads/errors.rb', line 12

def initialize(failure)
  super("Cannot create Failure from #{ failure.inspect }, it doesn't meet the constraints")
end