Exception: GDocsAPIWrapper::RequestError

Inherits:
Error
  • Object
show all
Defined in:
lib/gdocsapi-wrapper/base.rb

Overview

Base error class for errors raised by the GDocs API

Direct Known Subclasses

AuthorizationError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ RequestError

Returns a new instance of RequestError.



32
33
34
35
# File 'lib/gdocsapi-wrapper/base.rb', line 32

def initialize(response)
  @response = response
  super "request error #{response.status_code}: #{response.body}"
end

Instance Attribute Details

#responseObject

Returns the value of attribute response.



30
31
32
# File 'lib/gdocsapi-wrapper/base.rb', line 30

def response
  @response
end