Exception: OCI::Errors::WorkRequestCanceledError
- Inherits:
-
StandardError
- Object
- StandardError
- OCI::Errors::WorkRequestCanceledError
- Defined in:
- lib/oci/errors.rb
Overview
Raised when a work request returns as canceled 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) ⇒ WorkRequestCanceledError
constructor
A new instance of WorkRequestCanceledError.
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
#status ⇒ Object (readonly)
The status associated with the failed work request.
184 185 186 |
# File 'lib/oci/errors.rb', line 184 def status @status end |
#work_request ⇒ Object (readonly)
The failed work request.
181 182 183 |
# File 'lib/oci/errors.rb', line 181 def work_request @work_request end |