class Qiniu::ResponseError
Attributes
response[R]
Public Class Methods
new(message, response = nil)
click to toggle source
Calls superclass method
# File lib/qiniu/exceptions.rb, line 10 def initialize(message, response = nil) @response = response super(message) end
Public Instance Methods
http_body()
click to toggle source
# File lib/qiniu/exceptions.rb, line 19 def http_body @response.body if @response end
http_code()
click to toggle source
# File lib/qiniu/exceptions.rb, line 15 def http_code @response.code.to_i if @response end
inspect()
click to toggle source
# File lib/qiniu/exceptions.rb, line 23 def inspect "#{message}: #{http_body}" end