Exception: OCI::Errors::WorkRequestCanceledError

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(work_request, status) ⇒ WorkRequestCanceledError

Returns a new instance of WorkRequestCanceledError.



186
187
188
189
190
# File 'lib/oci/errors.rb', line 186

def initialize(work_request, status)
  super "Work request canceled. 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.



184
185
186
# File 'lib/oci/errors.rb', line 184

def status
  @status
end

#work_requestObject (readonly)

The failed work request.



181
182
183
# File 'lib/oci/errors.rb', line 181

def work_request
  @work_request
end