Exception: Qyu::Errors::CouldNotFetchTask

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

Overview

Qyu::Errors::CouldNotFetchTask TODO: rethink this…

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(queue_name, message_id, task_id, original_error) ⇒ CouldNotFetchTask


9
10
11
12
13
14
15
# File 'lib/qyu/errors/could_not_fetch_task.rb', line 9

def initialize(queue_name, message_id, task_id, original_error)
  super("Task cannot be fetched from queue=#{queue_name} with message_id=#{message_id} task_id=#{task_id}.")
  @original_error = original_error
  @task_id = task_id
  @message_id = message_id
  @queue_name = queue_name
end

Instance Attribute Details

#message_idObject (readonly)

Returns the value of attribute message_id


8
9
10
# File 'lib/qyu/errors/could_not_fetch_task.rb', line 8

def message_id
  @message_id
end

#original_errorObject (readonly)

Returns the value of attribute original_error


8
9
10
# File 'lib/qyu/errors/could_not_fetch_task.rb', line 8

def original_error
  @original_error
end

#queue_nameObject (readonly)

Returns the value of attribute queue_name


8
9
10
# File 'lib/qyu/errors/could_not_fetch_task.rb', line 8

def queue_name
  @queue_name
end

#task_idObject (readonly)

Returns the value of attribute task_id


8
9
10
# File 'lib/qyu/errors/could_not_fetch_task.rb', line 8

def task_id
  @task_id
end