Class: Fintecture::ApiException

Inherits:
Object
  • Object
show all
Defined in:
lib/fintecture/exceptions.rb

Class Method Summary collapse

Class Method Details

.error(res) ⇒ Object



12
13
14
15
16
# File 'lib/fintecture/exceptions.rb', line 12

def error(res)
  body = JSON.parse res.body

  raise construct_message_errors(res.status, body)
end