Exception: Phronomy::LowConfidenceError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(result) ⇒ LowConfidenceError

Returns a new instance of LowConfidenceError.



48
49
50
51
# File 'lib/phronomy.rb', line 48

def initialize(result)
  @result = result
  super("Answer confidence #{result.confidence} is below the required threshold")
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



46
47
48
# File 'lib/phronomy.rb', line 46

def result
  @result
end