Exception: Anakin::JobTimeoutError

Inherits:
Error
  • Object
show all
Defined in:
lib/anakin/errors.rb

Overview

Polling budget exhausted before the job reached a terminal status.

Instance Attribute Summary collapse

Attributes inherited from Error

#code, #status

Instance Method Summary collapse

Constructor Details

#initialize(message, job_id: nil, elapsed: 0) ⇒ JobTimeoutError

Returns a new instance of JobTimeoutError.



57
58
59
60
61
# File 'lib/anakin/errors.rb', line 57

def initialize(message, job_id: nil, elapsed: 0)
  super(message)
  @job_id = job_id
  @elapsed = elapsed
end

Instance Attribute Details

#elapsedObject (readonly)

Returns the value of attribute elapsed.



55
56
57
# File 'lib/anakin/errors.rb', line 55

def elapsed
  @elapsed
end

#job_idObject (readonly)

Returns the value of attribute job_id.



55
56
57
# File 'lib/anakin/errors.rb', line 55

def job_id
  @job_id
end