Exception: Leann::IndexExistsError
- Defined in:
- lib/leann/errors.rb
Overview
Raised when an index already exists
Instance Attribute Summary collapse
-
#index_name ⇒ Object
readonly
Returns the value of attribute index_name.
Instance Method Summary collapse
-
#initialize(index_name) ⇒ IndexExistsError
constructor
A new instance of IndexExistsError.
Constructor Details
#initialize(index_name) ⇒ IndexExistsError
Returns a new instance of IndexExistsError.
24 25 26 27 |
# File 'lib/leann/errors.rb', line 24 def initialize(index_name) @index_name = index_name super("Index already exists: #{index_name}. Use force: true to overwrite.") end |
Instance Attribute Details
#index_name ⇒ Object (readonly)
Returns the value of attribute index_name.
22 23 24 |
# File 'lib/leann/errors.rb', line 22 def index_name @index_name end |