Class: RetryDelayTooLarge

Inherits:
RestClient::Exception
  • Object
show all
Defined in:
lib/berkeley_library/util/uris/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(response, delay:, max_delay:) ⇒ RetryDelayTooLarge

Returns a new instance of RetryDelayTooLarge.



2
3
4
5
6
# File 'lib/berkeley_library/util/uris/exceptions.rb', line 2

def initialize(response, delay:, max_delay:)
  super(response, response.code)

  self.message = 'Retry delay of %0.2gs exceeds limit of %0.2gs' % [delay, max_delay]
end