Method: CloudApp::Base.bad_response
- Defined in:
- lib/cloudapp/base.rb
.bad_response(response) ⇒ Object
Examines a bad response and raises an approriate exception
35 36 37 38 39 40 |
# File 'lib/cloudapp/base.rb', line 35 def self.bad_response(response) if response.class == HTTParty::Response raise ResponseError, response end raise StandardError, "Unkown error" end |