Exception: R::UnwrapFailedError
- Inherits:
-
StandardError
- Object
- StandardError
- R::UnwrapFailedError
- Extended by:
- T::Sig
- Defined in:
- lib/r/unwrap_failed_error.rb
Overview
UnwrapFailedError is raised by Result#unwrap! and Result#unwrap_err! (and their variants Result#expect! and Result#expect_err!) when called on the wrong result type.
Instance Attribute Summary collapse
- #value ⇒ T.anything readonly
Instance Method Summary collapse
- #initialize(message, value) ⇒ void constructor
Constructor Details
#initialize(message, value) ⇒ void
20 21 22 23 |
# File 'lib/r/unwrap_failed_error.rb', line 20 def initialize(, value) super((, value)) @value = value end |
Instance Attribute Details
#value ⇒ T.anything (readonly)
17 18 19 |
# File 'lib/r/unwrap_failed_error.rb', line 17 def value @value end |