Exception: Risenexa::Tracking::MaxRetriesExceededError

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

Overview

Raised when all retry attempts are exhausted on retryable HTTP errors.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = "Max retries exceeded", last_response: nil) ⇒ MaxRetriesExceededError

Returns a new instance of MaxRetriesExceededError.



48
49
50
51
# File 'lib/risenexa/tracking/errors.rb', line 48

def initialize(message = "Max retries exceeded", last_response: nil)
  @last_response = last_response
  super(message)
end

Instance Attribute Details

#last_response ⇒ Net::HTTPResponse (readonly)

Returns the last HTTP response received.

Returns:

  • (Net::HTTPResponse) —

    the last HTTP response received



46
47
48
# File 'lib/risenexa/tracking/errors.rb', line 46

def last_response
  @last_response
end