Exception: Qiniu::RS::RequestFailed

Inherits:
ResponseError show all
Defined in:
lib/qiniu/rs/exceptions.rb

Instance Attribute Summary

Attributes inherited from ResponseError

#response

Instance Method Summary collapse

Methods inherited from ResponseError

#http_body, #http_code, #initialize, #inspect

Constructor Details

This class inherits a constructor from Qiniu::RS::ResponseError

Instance Method Details

#messageObject



31
32
33
# File 'lib/qiniu/rs/exceptions.rb', line 31

def message
  "HTTP status code: #{http_code}. Response body: #{http_body}"
end

#to_sObject



35
36
37
# File 'lib/qiniu/rs/exceptions.rb', line 35

def to_s
  message
end