Exception: PagarMe::ConnectionError

Inherits:
PagarMeError show all
Defined in:
lib/pagarme/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ ConnectionError

Returns a new instance of ConnectionError.



8
9
10
11
# File 'lib/pagarme/errors.rb', line 8

def initialize(error)
  @error = error
  super error.message
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



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

def error
  @error
end