Exception: MyJohnDeereApi::NetHttpRetry::MaxRetriesExceededError
- Inherits:
-
StandardError
- Object
- StandardError
- MyJohnDeereApi::NetHttpRetry::MaxRetriesExceededError
- 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
-
#initialize(request_method, response_message) ⇒ MaxRetriesExceededError
constructor
argument is a string which describes the attempted request.
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, ) = "Max retries exceeded for #{request_method.to_s.upcase} " + "request: #{response_message}" super() end |