Exception: Mathpix::LowConfidenceError

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

Overview

Low confidence error

Instance Attribute Summary collapse

Attributes inherited from Error

#details

Instance Method Summary collapse

Constructor Details

#initialize(message, confidence: nil, suggestions: []) ⇒ LowConfidenceError

Returns a new instance of LowConfidenceError.



48
49
50
51
52
# File 'lib/mathpix/errors.rb', line 48

def initialize(message, confidence: nil, suggestions: [])
  super(message)
  @confidence = confidence
  @suggestions = suggestions
end

Instance Attribute Details

#confidenceObject (readonly)

Returns the value of attribute confidence.



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

def confidence
  @confidence
end

#suggestionsObject (readonly)

Returns the value of attribute suggestions.



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

def suggestions
  @suggestions
end