Exception: Dry::Monads::InvalidFailureTypeError
- Inherits:
-
StandardError
- Object
- StandardError
- Dry::Monads::InvalidFailureTypeError
- Defined in:
- lib/dry/monads/errors.rb
Overview
An error thrown on returning a Failure of unknown type.
Instance Method Summary collapse
-
#initialize(failure) ⇒ InvalidFailureTypeError
constructor
A new instance of InvalidFailureTypeError.
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 |