Exception: ThinkingSphinx::SphinxError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/thinking_sphinx.rb

Overview

A SphinxError occurs when Sphinx responds with an error due to problematic queries or indexes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, results = nil) ⇒ SphinxError

Returns a new instance of SphinxError.



54
55
56
57
# File 'lib/thinking_sphinx.rb', line 54

def initialize(message = nil, results = nil)
  super(message)
  self.results = results
end

Instance Attribute Details

#resultsObject

Returns the value of attribute results.



53
54
55
# File 'lib/thinking_sphinx.rb', line 53

def results
  @results
end