Exception: Anakin::JobFailedError

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

Overview

Polled job came back with status=“failed”.

Instance Attribute Summary collapse

Attributes inherited from Error

#code, #status

Instance Method Summary collapse

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(message, job_id: nil, reason: nil)
  super(message)
  @job_id = job_id
  @reason = reason
end

Instance Attribute Details

#job_idObject (readonly)

Returns the value of attribute job_id.



44
45
46
# File 'lib/anakin/errors.rb', line 44

def job_id
  @job_id
end

#reasonObject (readonly)

Returns the value of attribute reason.



44
45
46
# File 'lib/anakin/errors.rb', line 44

def reason
  @reason
end