Exception: JayAPI::Elasticsearch::Errors::EndOfQueryResultsError

Inherits:
ElasticsearchError show all
Defined in:
lib/jay_api/elasticsearch/errors/end_of_query_results_error.rb

Overview

An error to be raised when an attempt is made to fetch more documents on a QueryResults class that has reached the end of the matched documents.

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ EndOfQueryResultsError

:reek:ControlParameter (want to avoid the long string in as default value) Creates a new instance of the class with the specified message.

Parameters:

  • message (String) (defaults to: nil)

    The message to use, if none is given the default message will be used.



16
17
18
# File 'lib/jay_api/elasticsearch/errors/end_of_query_results_error.rb', line 16

def initialize(message = nil)
  super(message || 'End of the query results reached')
end