Exception: ThinkingSphinx::Search::StaleIdsException
- Inherits:
-
StandardError
- Object
- StandardError
- ThinkingSphinx::Search::StaleIdsException
- Defined in:
- lib/thinking_sphinx/search/stale_ids_exception.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#ids ⇒ Object
readonly
Returns the value of attribute ids.
Instance Method Summary collapse
-
#initialize(ids, context) ⇒ StaleIdsException
constructor
A new instance of StaleIdsException.
- #message ⇒ Object
Constructor Details
#initialize(ids, context) ⇒ StaleIdsException
Returns a new instance of StaleIdsException.
6 7 8 9 |
# File 'lib/thinking_sphinx/search/stale_ids_exception.rb', line 6 def initialize(ids, context) @ids = ids @context = context end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
4 5 6 |
# File 'lib/thinking_sphinx/search/stale_ids_exception.rb', line 4 def context @context end |
#ids ⇒ Object (readonly)
Returns the value of attribute ids.
4 5 6 |
# File 'lib/thinking_sphinx/search/stale_ids_exception.rb', line 4 def ids @ids end |
Instance Method Details
#message ⇒ Object
11 12 13 14 |
# File 'lib/thinking_sphinx/search/stale_ids_exception.rb', line 11 def "Record IDs found by Sphinx but not by ActiveRecord : #{ids.join(', ')}\n" \ "https://freelancing-gods.com/thinking-sphinx/v5/common_issues.html#record-ids" end |