Exception: DeepL::Exceptions::ServerError

Inherits:
RequestError show all
Defined in:
lib/deepl/exceptions/server_error.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/server_error.rb', line 9

def message
  'An internal server error occured. Try again after waiting a short period.'
end

#should_retry?Boolean

Returns:

  • (Boolean)


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

def should_retry?
  true
end