Exception: DropboxApi::Errors::TooManyRequestsError

Inherits:
BasicError
  • Object
show all
Defined in:
lib/dropbox_api/errors/too_many_requests_error.rb,
lib/dropbox_api/errors/too_many_requests_error.rb

Direct Known Subclasses

TooManyWriteOperationsError

Constant Summary collapse

ErrorSubtypes =
{
  too_many_requests: TooManyRequestsError,
  too_many_write_operations: TooManyWriteOperationsError
}

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from BasicError

find_subtype, #initialize

Constructor Details

This class inherits a constructor from DropboxApi::Errors::BasicError

Instance Attribute Details

#retry_afterObject

Returns the value of attribute retry_after.



7
8
9
# File 'lib/dropbox_api/errors/too_many_requests_error.rb', line 7

def retry_after
  @retry_after
end

Class Method Details

.build(message, metadata) ⇒ Object



9
10
11
12
13
# File 'lib/dropbox_api/errors/too_many_requests_error.rb', line 9

def self.build(message, )
  subtype,  = find_subtype 

  subtype.new(message, )
end