Exception: Leann::CorruptedIndexError
- Defined in:
- lib/leann/errors.rb
Overview
Raised when index is corrupted or invalid
Instance Attribute Summary collapse
-
#index_name ⇒ Object
readonly
Returns the value of attribute index_name.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(index_name, reason = nil) ⇒ CorruptedIndexError
constructor
A new instance of CorruptedIndexError.
Constructor Details
#initialize(index_name, reason = nil) ⇒ CorruptedIndexError
Returns a new instance of CorruptedIndexError.
56 57 58 59 60 61 62 |
# File 'lib/leann/errors.rb', line 56 def initialize(index_name, reason = nil) @index_name = index_name @reason = reason = "Corrupted index: #{index_name}" += " (#{reason})" if reason super() end |
Instance Attribute Details
#index_name ⇒ Object (readonly)
Returns the value of attribute index_name.
54 55 56 |
# File 'lib/leann/errors.rb', line 54 def index_name @index_name end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
54 55 56 |
# File 'lib/leann/errors.rb', line 54 def reason @reason end |