Exception: Shikibu::RetryExhaustedError

Inherits:
Error
  • Object
show all
Defined in:
lib/shikibu/errors.rb

Overview

Raised when all retry attempts have been exhausted

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, attempts:, last_error: nil) ⇒ RetryExhaustedError

Returns a new instance of RetryExhaustedError.



31
32
33
34
35
# File 'lib/shikibu/errors.rb', line 31

def initialize(message, attempts:, last_error: nil)
  @attempts = attempts
  @last_error = last_error
  super(message)
end

Instance Attribute Details

#attemptsObject (readonly)

Returns the value of attribute attempts.



29
30
31
# File 'lib/shikibu/errors.rb', line 29

def attempts
  @attempts
end

#last_errorObject (readonly)

Returns the value of attribute last_error.



29
30
31
# File 'lib/shikibu/errors.rb', line 29

def last_error
  @last_error
end