Exception: GoPay::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/gopay/error.rb

Class Method Summary collapse

Class Method Details

.handle_gopay_error(response) ⇒ Object



4
5
6
# File 'lib/gopay/error.rb', line 4

def self.handle_gopay_error(response)
  new("#{response.code} : #{response.body}")
end