Exception: Retry::StopRetry
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Retry::StopRetry
- Defined in:
- lib/retry.rb
Overview
Retry handlers should raise this exception to stop retry processing and return the return value from the Retry.do method
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value = nil) ⇒ StopRetry
constructor
A new instance of StopRetry.
Constructor Details
#initialize(value = nil) ⇒ StopRetry
Returns a new instance of StopRetry.
23 24 25 |
# File 'lib/retry.rb', line 23 def initialize(value = nil) self.value = value end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
22 23 24 |
# File 'lib/retry.rb', line 22 def value @value end |