Exception: WAZ::Storage::InvalidOption

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

Overview

This exception raises whenever a required parameter for initializing any class isn’t provided. From WAZ::Storage::Base up to WAZ::Queues::Queue all of them use this exception.

Instance Method Summary collapse

Constructor Details

#initialize(missing_option) ⇒ InvalidOption

Returns a new instance of InvalidOption.



12
13
14
# File 'lib/waz/storage/exceptions.rb', line 12

def initialize(missing_option)
  super("You did not provide one of the required parameters. Please provide the #{missing_option}.")
end