Exception: PredicsisMlSdk::JobError
- Defined in:
- lib/predicsis_ml_sdk/errors.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#job_id ⇒ Object
readonly
Returns the value of attribute job_id.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(errors = nil, job_id = nil, action = nil) ⇒ JobError
constructor
A new instance of JobError.
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
#action ⇒ Object (readonly)
Returns the value of attribute action.
12 13 14 |
# File 'lib/predicsis_ml_sdk/errors.rb', line 12 def action @action end |
#job_id ⇒ Object (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 |