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.



90
91
92
93
94
# File 'lib/oci/errors.rb', line 90

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)


82
83
84
# File 'lib/oci/errors.rb', line 82

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)


88
89
90
# File 'lib/oci/errors.rb', line 88

def upload_id
  @upload_id
end