class Dry::Monads::InvalidFailureTypeError

An error thrown on returning a Failure of unknown type.

Public Class Methods

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