Exception: MMS::ApiError
- Inherits:
-
RuntimeError
- Object
- StandardError
- RuntimeError
- MMS::ApiError
- Defined in:
- lib/mms/errors.rb
Instance Attribute Summary
Attributes inherited from RuntimeError
Instance Method Summary collapse
-
#initialize(message, request, response) ⇒ ApiError
constructor
A new instance of ApiError.
Constructor Details
#initialize(message, request, response) ⇒ ApiError
Returns a new instance of ApiError.
36 37 38 |
# File 'lib/mms/errors.rb', line 36 def initialize(, request, response) super("API Response error! Code: #{response.code}, body: #{response.body}", request, response) end |