Exception: PredicsisMlSdk::JobError

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

Instance Attribute Summary collapse

Attributes inherited from Error

#error

Instance Method Summary collapse

Constructor Details

#initialize(errors = nil, job_id = nil, action = nil) ⇒ JobError

Returns a new instance of JobError.



14
15
16
17
18
19
# File 'lib/predicsis_ml_sdk/errors.rb', line 14

def initialize(errors = nil, job_id = nil, action = nil)
  @job_id = job_id
  @action = action
  @errors = errors
  super(errors.map { |e| e['message'] }.join('. '), errors)
end

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action.



12
13
14
# File 'lib/predicsis_ml_sdk/errors.rb', line 12

def action
  @action
end

#job_idObject (readonly)

Returns the value of attribute job_id.



12
13
14
# File 'lib/predicsis_ml_sdk/errors.rb', line 12

def job_id
  @job_id
end