Exception: Momento::Error::NotFoundError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Momento::Error::NotFoundError
- Includes:
- Momento::Error
- Defined in:
- lib/momento/error/types.rb
Overview
A cache with the specified name does not exist.
Instance Attribute Summary
Attributes included from Momento::Error
#cause, #context, #details, #transport_details
Instance Method Summary collapse
-
#error_code ⇒ Symbol
A Momento-specific code for the type of error.
-
#message ⇒ String
The error message.
Methods included from Momento::Error
Instance Method Details
#error_code ⇒ Symbol
A Momento-specific code for the type of error.
220 221 222 |
# File 'lib/momento/error/types.rb', line 220 def error_code :NOT_FOUND_ERROR end |
#message ⇒ String
The error message.
225 226 227 |
# File 'lib/momento/error/types.rb', line 225 def "A cache with the specified name does not exist. To resolve this error, make sure you have created the cache before attempting to use it. Cache name: '#{context[:cache_name]}'" end |