1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[rackspace|cdn] updating cdn to throw exceptions from storage namespace rather than cdn. This was done for historical reasons.

This commit is contained in:
Kyle Rames 2013-06-25 08:42:29 -05:00
parent ffa1ec4f75
commit 688f15f88f

View file

@ -155,13 +155,13 @@ module Fog
def request(params, parse_json = true, &block)
super(params, parse_json, &block)
rescue Excon::Errors::NotFound => error
raise NotFound.slurp(error, region)
raise Fog::Storage::Rackspace::NotFound.slurp(error, region)
rescue Excon::Errors::BadRequest => error
raise BadRequest.slurp error
raise Fog::Storage::Rackspace::BadRequest.slurp error
rescue Excon::Errors::InternalServerError => error
raise InternalServerError.slurp error
raise Fog::Storage::Rackspace::InternalServerError.slurp error
rescue Excon::Errors::HTTPStatusError => error
raise ServiceError.slurp error
raise Fog::Storage::Rackspace::ServiceError.slurp error
end
private