Exception: Retry::StopRetry

Inherits:
RuntimeError
  • Object
show all
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

Instance Method Summary collapse

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

#valueObject

Returns the value of attribute value.



22
23
24
# File 'lib/retry.rb', line 22

def value
  @value
end