Exception: GoogleDrive::ResponseCodeError
- Defined in:
- lib/google_drive/response_code_error.rb
Overview
Raised when an HTTP request has returned an unexpected response code.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, body, method, url) ⇒ ResponseCodeError
constructor
:nodoc:#.
Constructor Details
#initialize(code, body, method, url) ⇒ ResponseCodeError
:nodoc:#
14 15 16 17 18 |
# File 'lib/google_drive/response_code_error.rb', line 14 def initialize(code, body, method, url) #:nodoc:# @code = code @body = body super("Response code %s for %s %s: %s" % [code, method, url, CGI.unescapeHTML(body)]) end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
20 21 22 |
# File 'lib/google_drive/response_code_error.rb', line 20 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
20 21 22 |
# File 'lib/google_drive/response_code_error.rb', line 20 def code @code end |