Exception: MyJohnDeereApi::NetHttpRetry::InvalidResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- MyJohnDeereApi::NetHttpRetry::InvalidResponseError
- Defined in:
- lib/my_john_deere_api/net_http_retry/invalid_response_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
-
#initialize(response) ⇒ InvalidResponseError
constructor
argument is a string which describes the attempted request.
Constructor Details
#initialize(response) ⇒ InvalidResponseError
argument is a string which describes the attempted request
12 13 14 15 16 17 18 19 20 |
# File 'lib/my_john_deere_api/net_http_retry/invalid_response_error.rb', line 12 def initialize(response) = { code: response.code, message: response., body: response.body, }.to_json super() end |