Exception: OKF::Bundle::Search::UnknownEngine
- 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
-
#available ⇒ Object
readonly
Returns the value of attribute available.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, available) ⇒ UnknownEngine
constructor
A new instance of UnknownEngine.
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
#available ⇒ Object (readonly)
Returns the value of attribute available.
48 49 50 |
# File 'lib/okf/bundle/search.rb', line 48 def available @available end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
48 49 50 |
# File 'lib/okf/bundle/search.rb', line 48 def name @name end |