Exception: Errgonomic::UnwrapError

Inherits:
Error show all
Defined in:
lib/errgonomic.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, value = nil) ⇒ UnwrapError

Returns a new instance of UnwrapError.



35
36
37
38
# File 'lib/errgonomic.rb', line 35

def initialize(msg, value = nil)
  super(msg)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



33
34
35
# File 'lib/errgonomic.rb', line 33

def value
  @value
end