Exception: OKF::Bundle::Search::UnknownEngine

Inherits:
Error
  • Object
show all
Defined in:
lib/okf/bundle/search.rb

Overview

Raised when --engine names something that is not on offer. An engine registered but reporting available? == false is absent from the list for the same reason it is absent from routing: it cannot answer. A future addon whose native build failed will want a kinder message than this one.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, available) ⇒ UnknownEngine

Returns a new instance of UnknownEngine.



50
51
52
53
54
# File 'lib/okf/bundle/search.rb', line 50

def initialize(name, available)
  @name = name
  @available = available
  super("unknown search engine: #{name} (available: #{available.join(", ")})")
end

Instance Attribute Details

#availableObject (readonly)

Returns the value of attribute available.



48
49
50
# File 'lib/okf/bundle/search.rb', line 48

def available
  @available
end

#nameObject (readonly)

Returns the value of attribute name.



48
49
50
# File 'lib/okf/bundle/search.rb', line 48

def name
  @name
end