Exception: LobbyingDisclosureClient::Errors::RequestThrottledError

Inherits:
StandardError
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/lobbying_disclosure_client/errors/request_throttled_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, retry_after) ⇒ RequestThrottledError

Returns a new instance of RequestThrottledError.



20
21
22
23
# File 'lib/lobbying_disclosure_client/errors/request_throttled_error.rb', line 20

def initialize(message, retry_after)
  super(message)
  @retry_after = retry_after
end

Instance Attribute Details

#retry_afterObject (readonly)

Returns the value of attribute retry_after.



12
13
14
# File 'lib/lobbying_disclosure_client/errors/request_throttled_error.rb', line 12

def retry_after
  @retry_after
end