Exception: Anakin::JobFailedError
- Defined in:
- lib/anakin/errors.rb
Overview
Polled job came back with status=“failed”.
Instance Attribute Summary collapse
-
#job_id ⇒ Object
readonly
Returns the value of attribute job_id.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message, job_id: nil, reason: nil) ⇒ JobFailedError
constructor
A new instance of JobFailedError.
Constructor Details
#initialize(message, job_id: nil, reason: nil) ⇒ JobFailedError
Returns a new instance of JobFailedError.
46 47 48 49 50 |
# File 'lib/anakin/errors.rb', line 46 def initialize(, job_id: nil, reason: nil) super() @job_id = job_id @reason = reason end |
Instance Attribute Details
#job_id ⇒ Object (readonly)
Returns the value of attribute job_id.
44 45 46 |
# File 'lib/anakin/errors.rb', line 44 def job_id @job_id end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
44 45 46 |
# File 'lib/anakin/errors.rb', line 44 def reason @reason end |