Exception: Leann::IndexExistsError

Inherits:
Error
  • Object
show all
Defined in:
lib/leann/errors.rb

Overview

Raised when an index already exists

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (readonly)

Returns the value of attribute index_name.



22
23
24
# File 'lib/leann/errors.rb', line 22

def index_name
  @index_name
end