Exception: MdnQuery::NoEntryFound

Inherits:
Error
  • Object
show all
Defined in:
lib/mdn_query/errors.rb

Overview

The error when no entries were found.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(query, options = {}) ⇒ MdnQuery::NoEntryFound

Creates a new NoEntryFound error.

Parameters:

  • query (String)

    the query that was searched for

  • options (Hash) (defaults to: {})

    the options used for the search



18
19
20
21
# File 'lib/mdn_query/errors.rb', line 18

def initialize(query, options = {})
  @query = query
  @options = options
end

Instance Attribute Details

#optionsHash (readonly)

Returns the options used for the search.

Returns:

  • (Hash)

    the options used for the search



11
12
13
# File 'lib/mdn_query/errors.rb', line 11

def options
  @options
end

#queryString (readonly)

Returns the query that was searched for.

Returns:

  • (String)

    the query that was searched for



8
9
10
# File 'lib/mdn_query/errors.rb', line 8

def query
  @query
end