Exception: MyJohnDeereApi::NetHttpRetry::MaxRetriesExceededError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/my_john_deere_api/net_http_retry/max_retries_exceeded_error.rb

Overview

This error is used when a single request has exceeded the number of retries allowed by NetHttpRetry::Decorator::MAX_RETRIES.

Instance Method Summary collapse

Constructor Details

#initialize(request_method, response_message) ⇒ MaxRetriesExceededError

argument is a string which describes the attempted request



12
13
14
15
16
17
# File 'lib/my_john_deere_api/net_http_retry/max_retries_exceeded_error.rb', line 12

def initialize(request_method, response_message)
  message = "Max retries exceeded for #{request_method.to_s.upcase} " +
            "request: #{response_message}"

  super(message)
end