Exception: Cloudflare::QueueError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cloudflare_workers/queue.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, operation: nil, queue: nil) ⇒ QueueError

Returns a new instance of QueueError.



44
45
46
47
48
# File 'lib/cloudflare_workers/queue.rb', line 44

def initialize(message, operation: nil, queue: nil)
  @operation = operation
  @queue = queue
  super("[Cloudflare::Queue] queue=#{queue || '?'} op=#{operation || 'send'}: #{message}")
end

Instance Attribute Details

#operationObject (readonly)

Returns the value of attribute operation.



43
44
45
# File 'lib/cloudflare_workers/queue.rb', line 43

def operation
  @operation
end

#queueObject (readonly)

Returns the value of attribute queue.



43
44
45
# File 'lib/cloudflare_workers/queue.rb', line 43

def queue
  @queue
end