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.



17
18
19
# File 'lib/dry/monads/errors.rb', line 17

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