Exception: WAZ::Storage::InvalidParameterValue
- Inherits:
-
StorageException
- Object
- StandardError
- StorageException
- WAZ::Storage::InvalidParameterValue
- Defined in:
- lib/waz/storage/exceptions.rb
Overview
This exception if raised when the value given for an argument doesn’t fall into the permitted values. For example if values on the blocklisttype aren’t [all|uncommitted|committed]
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ InvalidParameterValue
constructor
A new instance of InvalidParameterValue.
Constructor Details
#initialize(args = {}) ⇒ InvalidParameterValue
Returns a new instance of InvalidParameterValue.
28 29 30 |
# File 'lib/waz/storage/exceptions.rb', line 28 def initialize(args = {}) super("The value supplied for the parameter #{args[:name]} is invalid. Permitted values are #{args[:values].join(',')}") end |