Exception: WrappableError
- Inherits:
-
StandardError
- Object
- StandardError
- WrappableError
- Defined in:
- lib/with_retries.rb
Overview
Use to propagate exceptions from the inner block to with_retries handler
Instance Attribute Summary collapse
-
#wrapped ⇒ Object
readonly
Returns the value of attribute wrapped.
Instance Method Summary collapse
-
#initialize(ex) ⇒ WrappableError
constructor
A new instance of WrappableError.
Constructor Details
#initialize(ex) ⇒ WrappableError
Returns a new instance of WrappableError.
7 8 9 10 |
# File 'lib/with_retries.rb', line 7 def initialize(ex) super @wrapped = ex end |
Instance Attribute Details
#wrapped ⇒ Object (readonly)
Returns the value of attribute wrapped.
5 6 7 |
# File 'lib/with_retries.rb', line 5 def wrapped @wrapped end |