Exception: Fog::Rackspace::LoadBalancers::ServiceError
- Inherits:
-
Errors::Error
- Object
- StandardError
- Errors::Error
- Fog::Rackspace::LoadBalancers::ServiceError
- Defined in:
- lib/fog/rackspace/load_balancers.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response_data ⇒ Object
readonly
Returns the value of attribute response_data.
Attributes inherited from Errors::Error
Class Method Summary collapse
Instance Attribute Details
#response_data ⇒ Object (readonly)
Returns the value of attribute response_data.
6 7 8 |
# File 'lib/fog/rackspace/load_balancers.rb', line 6 def response_data @response_data end |
Class Method Details
.slurp(error) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/rackspace/load_balancers.rb', line 8 def self.slurp(error) if error.response.body.empty? data = nil = nil else data = MultiJson.decode(error.response.body) = data['message'] end new_error = super(error, ) new_error.instance_variable_set(:@response_data, data) new_error end |