Exception: OCI::Errors::MultipartUploadError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/oci/errors.rb

Overview

Raised when there is an error performing a multipart upload (either a new upload or resuming an existing upload).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, errors = [], upload_id = nil) ⇒ MultipartUploadError

Returns a new instance of MultipartUploadError.



206
207
208
209
210
# File 'lib/oci/errors.rb', line 206

def initialize(message, errors = [], upload_id = nil)
  super(message)
  @errors = errors
  @upload_id = upload_id
end

Instance Attribute Details

#errorsArray (readonly)

An array containing the underlying errors which caused the failure

Returns:

  • (Array)


198
199
200
# File 'lib/oci/errors.rb', line 198

def errors
  @errors
end

#upload_idString (readonly)

The ID of multipart upload against which the error occurred, if known. This may be useful for resuming uploads which failed because of intermittent issues (e.g. network connectivity or HTTP 5xx errors received from the service)

Returns:

  • (String)


204
205
206
# File 'lib/oci/errors.rb', line 204

def upload_id
  @upload_id
end