Exception: Curio::NotFoundError
- Inherits:
-
KeyError
- Object
- KeyError
- Curio::NotFoundError
- Defined in:
- lib/curio.rb
Overview
Error raised when fetch cannot find an item with key
Instance Method Summary collapse
-
#initialize(key) ⇒ NotFoundError
constructor
A new instance of NotFoundError.
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 |