Exception: QuickStore::NotAllowedKeyError

Inherits:
Error
  • Object
show all
Defined in:
lib/quick_store/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(key, forbidden_names) ⇒ NotAllowedKeyError

Returns a new instance of NotAllowedKeyError.



11
12
13
14
15
16
17
# File 'lib/quick_store/exceptions.rb', line 11

def initialize(key, forbidden_names)
  super(
    "There is a \"#{key.to_s.chop}\" instance method already " \
    'defined. This will lead to problems while getting values ' \
    "from the store. Please use another key than #{forbidden_names}."
  )
end