Exception: Toy::InvalidKeyFactory

Inherits:
Error show all
Defined in:
lib/toy/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(name_or_factory) ⇒ InvalidKeyFactory

Returns a new instance of InvalidKeyFactory.



21
22
23
# File 'lib/toy/exceptions.rb', line 21

def initialize(name_or_factory)
  super("#{name_or_factory.inspect} is not a valid name and did not respond to next_key and key_type")
end