Exception: Qyu::Errors::TaskStatusUpdateFailed

Inherits:
Base
  • Object
show all
Defined in:
lib/qyu/errors/task_status_update_failed.rb

Overview

Qyu::Errors::TaskStatusUpdateFailed

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(task_id, status) ⇒ TaskStatusUpdateFailed

Returns a new instance of TaskStatusUpdateFailed.



8
9
10
11
12
# File 'lib/qyu/errors/task_status_update_failed.rb', line 8

def initialize(task_id, status)
  super("Task status cannot be updated task_id=#{task_id} status=#{status}.")
  @task_id = task_id
  @status = status
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



7
8
9
# File 'lib/qyu/errors/task_status_update_failed.rb', line 7

def status
  @status
end

#task_idObject (readonly)

Returns the value of attribute task_id.



7
8
9
# File 'lib/qyu/errors/task_status_update_failed.rb', line 7

def task_id
  @task_id
end