Exception: Mathpix::Error

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

Overview

Base error class

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, details: {})
  super(message)
  @details = details
end

Instance Attribute Details

#detailsObject (readonly)

Returns the value of attribute details.



6
7
8
# File 'lib/mathpix/errors.rb', line 6

def details
  @details
end