class Qiniu::UploadFailedError

Public Class Methods

new(status_code, response_data) click to toggle source
Calls superclass method
# File lib/qiniu/exceptions.rb, line 39
def initialize(status_code, response_data)
  data_string = response_data.map { |key, value| %Q(:#{key.to_s} => #{value.to_s}) }
  msg = %Q(Uploading Failed. HTTP Status Code: #{status_code}. HTTP response body: #{data_string.join(', ')}.)
  super(msg)
end