Exception: DeepL::Exceptions::LimitExceeded

Inherits:
RequestError show all
Defined in:
lib/deepl/exceptions/limit_exceeded.rb

Instance Attribute Summary

Attributes inherited from RequestError

#request, #response

Instance Method Summary collapse

Methods inherited from RequestError

#initialize

Constructor Details

This class inherits a constructor from DeepL::Exceptions::RequestError

Instance Method Details

#messageObject



9
10
11
# File 'lib/deepl/exceptions/limit_exceeded.rb', line 9

def message
  'Limit exceeded. Please wait and send your request once again.'
end

#should_retry?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/deepl/exceptions/limit_exceeded.rb', line 13

def should_retry?
  true
end