Exception: WAZ::Queues::InvalidOperation

Inherits:
Storage::StorageException show all
Defined in:
lib/waz/queues/exceptions.rb

Overview

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.

Instance Method Summary collapse

Constructor Details

#initializeInvalidOperation

Returns a new instance of InvalidOperation.



24
25
26
# File 'lib/waz/queues/exceptions.rb', line 24

def initialize()
  super("A peeked message cannot be delete, you need to lock it first (pop_receipt required).")
end