client/lib/deltacloud/error_response.rb
# Parse the Deltacloud API error body to Hash
#
Parse the Deltacloud API error body to Hash
Parse the Deltacloud API error body to Hash
def parse_error(body)
      args = {}
      args[:original_error] = body.to_s
      args[:server_backtrace] = body.text_at('backtrace')
      args[:message] ||= body.text_at('message')
      args[:driver] = body.attr_at('backend', 'driver')
      args[:provider] = body.attr_at('backend', 'provider')
      args
    end
def parse_error ( body ) args = { } args [ :original_error ] = body . to_s args [ :server_backtrace ] = body . text_at ( 'backtrace' ) args [ :message ] ||= body . text_at ( 'message' ) args [ :driver ] = body . attr_at ( 'backend' , 'driver' ) args [ :provider ] = body . attr_at ( 'backend' , 'provider' ) args end
Parse the Deltacloud API error body to Hash
Parse the Deltacloud API error body to Hash
body
<not_specific>