Exception: Leann::IndexNotFoundError

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

Overview

Raised when an index is not found

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(index_name) ⇒ IndexNotFoundError

Returns a new instance of IndexNotFoundError.



14
15
16
17
# File 'lib/leann/errors.rb', line 14

def initialize(index_name)
  @index_name = index_name
  super("Index not found: #{index_name}")
end

Instance Attribute Details

#index_nameObject (readonly)

Returns the value of attribute index_name.



12
13
14
# File 'lib/leann/errors.rb', line 12

def index_name
  @index_name
end