class

YandexDisk::APIError

Inherits YandexDisk::Error < Exception < Reference < Object

Raised when the API answers with a non-success status.

Yandex.Disk reports errors as a JSON body with message, description and error keys; all three are surfaced here when present.

Constructors

from_response(status : Int32, body : String | Nil) : APIError

Builds the most specific subclass available for status.

Source
new(status : Int32, message : String, code : String | Nil = nil, description : String | Nil = nil, api_message : String | Nil = nil)
Source

Instance methods

api_message

The API's own message, which it writes in the account's language (usually Russian) no matter what Accept-Language asks for.

Source
code
Source
description
Source
retryable?

Whether retrying the same operation could plausibly succeed.

Source
status
Source