Exception: Qyu::Errors::TaskNotFound

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

Overview

Qyu::Errors::TaskNotFound

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(task_id, original_error) ⇒ TaskNotFound

Returns a new instance of TaskNotFound.



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

def initialize(task_id, original_error)
  super("Task not found with id=#{task_id}.")
  @original_error = original_error
  @task_id = task_id
end

Instance Attribute Details

#original_errorObject (readonly)

Returns the value of attribute original_error.



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

def original_error
  @original_error
end

#task_idObject (readonly)

Returns the value of attribute task_id.



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

def task_id
  @task_id
end