Exception: Familia::KeyNotFoundError
- Defined in:
- lib/familia/errors.rb
Overview
Raised when attempting to refresh an object whose key doesn’t exist in Redis
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key) ⇒ KeyNotFoundError
constructor
A new instance of KeyNotFoundError.
- #message ⇒ Object
Constructor Details
#initialize(key) ⇒ KeyNotFoundError
Returns a new instance of KeyNotFoundError.
38 39 40 41 |
# File 'lib/familia/errors.rb', line 38 def initialize(key) @key = key super end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
36 37 38 |
# File 'lib/familia/errors.rb', line 36 def key @key end |
Instance Method Details
#message ⇒ Object
43 44 45 |
# File 'lib/familia/errors.rb', line 43 def "Key not found in Redis: #{key}" end |