Exception: OCI::Errors::WorkRequestFailedError

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

Overview

Raised when a work request returns as failed while waiting on completion.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(work_request, status) ⇒ WorkRequestFailedError

Returns a new instance of WorkRequestFailedError.



170
171
172
173
174
175
# File 'lib/oci/errors.rb', line 170

def initialize(work_request, status)
  # TODO: May also want to include error_details.
  super "Work request failed. ID: #{work_request.id}, Status: #{status}"
  @work_request = work_request
  @status = status
end

Instance Attribute Details

#statusObject (readonly)

The status associated with the failed work request.



168
169
170
# File 'lib/oci/errors.rb', line 168

def status
  @status
end

#work_requestObject (readonly)

The failed work request.



165
166
167
# File 'lib/oci/errors.rb', line 165

def work_request
  @work_request
end