Exception: WrappableError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/with_retries.rb

Overview

Use to propagate exceptions from the inner block to with_retries handler

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#wrappedObject (readonly)

Returns the value of attribute wrapped.



5
6
7
# File 'lib/with_retries.rb', line 5

def wrapped
  @wrapped
end