Exception: Momento::Error::AlreadyExistsError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Momento::Error::AlreadyExistsError
- Includes:
- Momento::Error
- Defined in:
- lib/momento/error/types.rb
Overview
A cache with the specified name already exists.
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.
10 11 12 |
# File 'lib/momento/error/types.rb', line 10 def error_code :ALREADY_EXISTS_ERROR end |
#message ⇒ String
The error message.
15 16 17 |
# File 'lib/momento/error/types.rb', line 15 def "A cache with the specified name already exists. To resolve this error, either delete the existing cache and make a new one, or use a different name. Cache name: '#{context[:cache_name]}'" end |