class MyJohnDeereApi::NetHttpRetry::InvalidResponseError

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

Public Class Methods

new(response) click to toggle source

argument is a string which describes the attempted request

Calls superclass method
# File lib/my_john_deere_api/net_http_retry/invalid_response_error.rb, line 12
def initialize(response)
  message = {
    code: response.status,
    message: response.response.reason_phrase,
    body: response.body,
  }.to_json

  super(message)
end