Exception: Mathpix::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Mathpix::Error
- Defined in:
- lib/mathpix/errors.rb
Overview
Base error class
Direct Known Subclasses
APIError, ConfigurationError, ConversionError, InvalidImageError, InvalidRequestError, LowConfidenceError, NetworkError
Instance Attribute Summary collapse
-
#details ⇒ Object
readonly
Returns the value of attribute details.
Instance Method Summary collapse
-
#initialize(message, details: {}) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, details: {}) ⇒ Error
Returns a new instance of Error.
8 9 10 11 |
# File 'lib/mathpix/errors.rb', line 8 def initialize(, details: {}) super() @details = details end |
Instance Attribute Details
#details ⇒ Object (readonly)
Returns the value of attribute details.
6 7 8 |
# File 'lib/mathpix/errors.rb', line 6 def details @details end |