Class: Transloadit::Exception::RateLimitReached

Inherits:
RestClient::RequestEntityTooLarge
  • Object
show all
Defined in:
lib/transloadit/exception.rb

Overview

Exception raised when Rate limit error response is returned from the API. See Rate Limiting

Instance Method Summary collapse

Instance Method Details

#default_messageObject



11
12
13
14
# File 'lib/transloadit/exception.rb', line 11

def default_message
  retry_msg = " Retry in #{@response.wait_time} seconds" if @response
  "Transloadit Rate Limit Reached.#{retry_msg}"
end