Exception: AmazingActivist::UnwrapError
- Defined in:
- lib/amazing_activist/errors/unwrap_error.rb
Instance Attribute Summary collapse
- #failure ⇒ 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.
9 10 11 12 13 |
# File 'lib/amazing_activist/errors/unwrap_error.rb', line 9 def initialize(failure) @failure = failure super(failure.) end |
Instance Attribute Details
#failure ⇒ Failure (readonly)
6 7 8 |
# File 'lib/amazing_activist/errors/unwrap_error.rb', line 6 def failure @failure end |
Instance Method Details
#cause ⇒ Exception?
16 17 18 |
# File 'lib/amazing_activist/errors/unwrap_error.rb', line 16 def cause @failure.exception || super end |