Exception: Mathpix::InvalidImageError
- Defined in:
- lib/mathpix/errors.rb
Overview
Invalid image error
Instance Attribute Summary collapse
-
#recommended_format ⇒ Object
readonly
Returns the value of attribute recommended_format.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message, recommended_format: nil) ⇒ InvalidImageError
constructor
A new instance of InvalidImageError.
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(, recommended_format: nil) super() @recommended_format = recommended_format end |
Instance Attribute Details
#recommended_format ⇒ Object (readonly)
Returns the value of attribute recommended_format.
60 61 62 |
# File 'lib/mathpix/errors.rb', line 60 def recommended_format @recommended_format end |