Exception: WAZ::Queues::OptionOutOfRange
- Inherits:
-
Storage::StorageException
- Object
- StandardError
- Storage::StorageException
- WAZ::Queues::OptionOutOfRange
- 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
-
#initialize(args = {}) ⇒ OptionOutOfRange
constructor
A new instance of OptionOutOfRange.
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 |