Exception: WAZ::Queues::OptionOutOfRange

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

Overview

This exception is raised when an initialization parameter of any of the WAZ::Queues classes falls of the specified values.

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ OptionOutOfRange

Returns a new instance of OptionOutOfRange.



15
16
17
# File 'lib/waz/queues/exceptions.rb', line 15

def initialize(args = {})
  super("The #{args[:name]} parameter is out of range allowed values go from #{args[:min]} to  #{args[:max]}.")
end