Exception: PolyLingo::JobFailedError

Inherits:
PolyLingoError show all
Defined in:
lib/polylingo/errors.rb

Overview

Async job finished with status failed or polling timed out.

Instance Attribute Summary collapse

Attributes inherited from PolyLingoError

#error, #status

Instance Method Summary collapse

Constructor Details

#initialize(job_id, status, error, message) ⇒ JobFailedError

Returns a new instance of JobFailedError.



33
34
35
36
# File 'lib/polylingo/errors.rb', line 33

def initialize(job_id, status, error, message)
  super(status, error, message)
  @job_id = job_id
end

Instance Attribute Details

#job_idObject (readonly)

Returns the value of attribute job_id.



31
32
33
# File 'lib/polylingo/errors.rb', line 31

def job_id
  @job_id
end