Exception: DeepL::Exceptions::DocumentNotReadyError

Inherits:
ServerError show all
Defined in:
lib/deepl/exceptions/document_not_ready_error.rb

Overview

HTTP 503 on a document download: the translated document is not ready yet. Raised after the retries.

Instance Attribute Summary

Attributes inherited from RequestError

#request, #response

Attributes inherited from Error

#http_status_code

Instance Method Summary collapse

Methods inherited from ServerError

#initialize, #should_retry?

Methods inherited from RequestError

#initialize

Methods inherited from Error

#initialize, #should_retry?

Constructor Details

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

Instance Method Details

#to_s ⇒ Object



11
12
13
14
# File 'lib/deepl/exceptions/document_not_ready_error.rb', line 11

def to_s
  message = body_message
  message ? "Document not ready: #{message}" : 'Document not ready.'
end