Exception: OCI::Errors::WorkRequestFailedError
- Inherits:
-
StandardError
- Object
- StandardError
- OCI::Errors::WorkRequestFailedError
- Defined in:
- lib/oci/errors.rb
Overview
Raised when a work request returns as failed while waiting on completion.
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
The status associated with the failed work request.
-
#work_request ⇒ Object
readonly
The failed work request.
Instance Method Summary collapse
-
#initialize(work_request, status) ⇒ WorkRequestFailedError
constructor
A new instance of WorkRequestFailedError.
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
#status ⇒ Object (readonly)
The status associated with the failed work request.
168 169 170 |
# File 'lib/oci/errors.rb', line 168 def status @status end |
#work_request ⇒ Object (readonly)
The failed work request.
165 166 167 |
# File 'lib/oci/errors.rb', line 165 def work_request @work_request end |