Class: Onlyoffice::DocsIntegrationSdk::DocumentServer::Client::ConversionService::Error
- Inherits:
-
T::Enum
- Object
- T::Enum
- Onlyoffice::DocsIntegrationSdk::DocumentServer::Client::ConversionService::Error
- Extended by:
- T::Sig
- Defined in:
- lib/onlyoffice/docs_integration_sdk/document_server/client/conversion.rb
Overview
Error is an enum that represents the possible errors that can occur when using the conversion service.
Constant Summary collapse
- UnknownError =
new(-1)
- ConversionTimeout =
new(-2)
- ConversionError =
new(-3)
- DownloadError =
new(-4)
- IncorrectPassword =
new(-5)
- DatabaseError =
new(-6)
- InputError =
new(-7)
- InvalidToken =
new(-8)
- UnknownFormat =
new(-9)
- SizeLimitExceeded =
new(-10)
Instance Method Summary collapse
-
#description ⇒ String
description returns the human-readable description of the error.
Instance Method Details
#description ⇒ String
description returns the human-readable description of the error.
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 |
# File 'lib/onlyoffice/docs_integration_sdk/document_server/client/conversion.rb', line 93 def description case self when UnknownError "Unknown error" when ConversionTimeout "Conversion timeout error" when ConversionError "Conversion error" when DownloadError "Error while downloading the document file to be converted" when IncorrectPassword "Incorrect password" when DatabaseError "Error while accessing the conversion result database" when InputError "Input error" when InvalidToken "Invalid token" when UnknownFormat "The converter cannot automatically determine the output file format" when SizeLimitExceeded "Size limit exceeded" else # :nocov: # unreachable # :nocov: end end |