Class WAZ::Queues::InvalidOperation
In: lib/waz/queues/exceptions.rb
Parent: WAZ::Storage::StorageException

This exception is raised when the user tries to perform a delete operation over a peeked message. Since peeked messages cannot by deleted given the fact that there‘s no pop_receipt associated with it this exception will be raised.

Methods

new  

Public Class methods

[Source]

    # File lib/waz/queues/exceptions.rb, line 24
24:       def initialize()
25:         super("A peeked message cannot be delete, you need to lock it first (pop_receipt required).")
26:       end

[Validate]