Exception: WAZ::Queues::InvalidOperation
- Inherits:
-
Storage::StorageException
- Object
- StandardError
- Storage::StorageException
- WAZ::Queues::InvalidOperation
- 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
-
#initialize ⇒ InvalidOperation
constructor
A new instance of InvalidOperation.
Constructor Details
#initialize ⇒ InvalidOperation
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 |