Exception: Mercadopago::MPConnectionError

Inherits:
MercadoPagoError show all
Defined in:
lib/mercadopago/errors/exceptions.rb

Overview

Transport-level or network error (timeout, DNS failure, SSL error).

Instance Attribute Summary

Attributes inherited from MercadoPagoError

#causes, #error, #request_id, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(cause) ⇒ MPConnectionError

Returns a new instance of MPConnectionError.



75
76
77
# File 'lib/mercadopago/errors/exceptions.rb', line 75

def initialize(cause)
  super(0, { 'error' => 'connection_error', 'message' => cause.to_s })
end