Exception: Neuromancer::Indexer::InvalidDocument

Inherits:
Error
  • Object
show all
Defined in:
lib/neuromancer/indexer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ InvalidDocument

Returns a new instance of InvalidDocument.



22
23
24
# File 'lib/neuromancer/indexer.rb', line 22

def initialize(errors)
  @errors = errors
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



20
21
22
# File 'lib/neuromancer/indexer.rb', line 20

def errors
  @errors
end

Instance Method Details

#inspectObject



30
31
32
# File 'lib/neuromancer/indexer.rb', line 30

def inspect
  "#<#{self.class.name}: '#{message}'>"
end

#messageObject



26
27
28
# File 'lib/neuromancer/indexer.rb', line 26

def message
  errors.join(', ')
end