Exception: Flipper::Registry::KeyNotFound

Inherits:
Error
  • Object
show all
Defined in:
lib/flipper/registry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ KeyNotFound

Returns a new instance of KeyNotFound.



15
16
17
18
# File 'lib/flipper/registry.rb', line 15

def initialize(key)
  @key = key
  super("Key #{key.inspect} not found")
end

Instance Attribute Details

#keyObject (readonly)

Public: The key that was not found



13
14
15
# File 'lib/flipper/registry.rb', line 13

def key
  @key
end