Exception: ForestAdminAgent::Http::Exceptions::TooManyRequestsError

Inherits:
BusinessError
  • Object
show all
Defined in:
lib/forest_admin_agent/http/Exceptions/business_error.rb

Instance Attribute Summary collapse

Attributes inherited from BusinessError

#cause, #details

Instance Method Summary collapse

Methods inherited from BusinessError

#name

Constructor Details

#initialize(message, retry_after, details: {}) ⇒ TooManyRequestsError

Returns a new instance of TooManyRequestsError.



76
77
78
79
# File 'lib/forest_admin_agent/http/Exceptions/business_error.rb', line 76

def initialize(message, retry_after, details: {})
  super(message, details: details)
  @retry_after = retry_after
end

Instance Attribute Details

#retry_afterObject (readonly)

Returns the value of attribute retry_after.



74
75
76
# File 'lib/forest_admin_agent/http/Exceptions/business_error.rb', line 74

def retry_after
  @retry_after
end