| Class | Fog::Ecloud::Errors::ServiceError |
| In: |
lib/fog/compute/ecloud/errors.rb
|
| Parent: | Fog::Errors::Error |
The parent class for all errors in the Fog::Compute::Ecloud module.
| minor_error_code | [R] |
@!attribute [r] status_code
@return [Integer] the HTTP status code returned |
| response_data | [R] |
@!attribute [r] status_code
@return [Integer] the HTTP status code returned |
| status_code | [R] |
@!attribute [r] status_code
@return [Integer] the HTTP status code returned |
Parse the response body for an error message
@param [Hash] data the decoded XML response
@return [String] the error message, if found, otherwise the raw data
Parse the response body for the minor error code
@param [Hash] data the decoded XML response
@return [String] the error minor error code, if found, otherwise nil
Parse the response from the HTTP request to create a user friendly
message, including HTTP response code and error message (if any)
@param [Object] error the error object from the rescue block
@return [Object] the new error object