Exception: Cloudflare::QueueError
- Inherits:
-
StandardError
- Object
- StandardError
- Cloudflare::QueueError
- Defined in:
- lib/cloudflare_workers/queue.rb
Instance Attribute Summary collapse
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
-
#queue ⇒ Object
readonly
Returns the value of attribute queue.
Instance Method Summary collapse
-
#initialize(message, operation: nil, queue: nil) ⇒ QueueError
constructor
A new instance of QueueError.
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(, operation: nil, queue: nil) @operation = operation @queue = queue super("[Cloudflare::Queue] queue=#{queue || '?'} op=#{operation || 'send'}: #{}") end |
Instance Attribute Details
#operation ⇒ Object (readonly)
Returns the value of attribute operation.
43 44 45 |
# File 'lib/cloudflare_workers/queue.rb', line 43 def operation @operation end |
#queue ⇒ Object (readonly)
Returns the value of attribute queue.
43 44 45 |
# File 'lib/cloudflare_workers/queue.rb', line 43 def queue @queue end |