Exception: Opted::Result::UnwrapError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Opted::Result::UnwrapError
- Defined in:
- lib/opted/result.rb
Overview
Error raised from calling Err#unwrap! or Ok#unwrap_err!
Instance Method Summary collapse
-
#initialize(method, caller) ⇒ UnwrapError
constructor
A new instance of UnwrapError.
Constructor Details
#initialize(method, caller) ⇒ UnwrapError
Returns a new instance of UnwrapError.
10 11 12 |
# File 'lib/opted/result.rb', line 10 def initialize(method, caller) super("Called ##{method} on #{caller}") end |