Exception: Curio::NotFoundError

Inherits:
KeyError
  • Object
show all
Defined in:
lib/curio.rb

Overview

Error raised when fetch cannot find an item with key

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ NotFoundError

Returns a new instance of NotFoundError.



9
10
11
12
# File 'lib/curio.rb', line 9

def initialize(key)
  @key = key
  super "Item not found in collection with key: #{key}"
end