Exception: AmazingActivist::UnwrapError
- Defined in:
- lib/amazing_activist/unwrap_error.rb
Instance Attribute Summary collapse
- #failure ⇒ Outcome::Failure readonly
Instance Method Summary collapse
- #cause ⇒ Exception?
-
#initialize(failure) ⇒ UnwrapError
constructor
A new instance of UnwrapError.
Constructor Details
#initialize(failure) ⇒ UnwrapError
Returns a new instance of UnwrapError.
11 12 13 14 15 |
# File 'lib/amazing_activist/unwrap_error.rb', line 11 def initialize(failure) @failure = failure super(failure.) end |
Instance Attribute Details
#failure ⇒ Outcome::Failure (readonly)
8 9 10 |
# File 'lib/amazing_activist/unwrap_error.rb', line 8 def failure @failure end |
Instance Method Details
#cause ⇒ Exception?
18 19 20 |
# File 'lib/amazing_activist/unwrap_error.rb', line 18 def cause @failure.exception || super end |