class GData::Client::RequestError

Base class for errors raised due to requests

Attributes

response[RW]

The Net::HTTPResponse that caused this error.

Public Class Methods

new(response) click to toggle source

Creates a new RequestError from Net::HTTPResponse response with a message containing the error code and response body.

Calls superclass method
# File lib/gdata/client.rb, line 47
def initialize(response)
  @response = response

  super "request error #{response.status_code}: #{response.body}"
end