Exception: Dry::Monads::UnwrapError

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

Overview

An unsuccessful result of extracting a value from a monad.

Instance Method Summary collapse

Constructor Details

#initialize(ctx) ⇒ UnwrapError

Returns a new instance of UnwrapError.


5
6
7
# File 'lib/dry/monads/errors.rb', line 5

def initialize(ctx)
  super("value! was called on #{ ctx.inspect }")
end