Exception: Mathpix::InvalidImageError

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

Overview

Invalid image error

Instance Attribute Summary collapse

Attributes inherited from Error

#details

Instance Method Summary collapse

Constructor Details

#initialize(message, recommended_format: nil) ⇒ InvalidImageError

Returns a new instance of InvalidImageError.



62
63
64
65
# File 'lib/mathpix/errors.rb', line 62

def initialize(message, recommended_format: nil)
  super(message)
  @recommended_format = recommended_format
end

Instance Attribute Details

Returns the value of attribute recommended_format.



60
61
62
# File 'lib/mathpix/errors.rb', line 60

def recommended_format
  @recommended_format
end