added UploadFailedError

This commit is contained in:
404
2012-09-27 20:22:51 +08:00
parent cf8a38faa0
commit fa40449b12
2 changed files with 11 additions and 1 deletions
+10
View File
@@ -40,6 +40,16 @@ module Qiniu
end
end
class UploadFailedError < ResponseError
def message
"Uploading Failed. HTTP Status Code #{http_code}"
end
def to_s
message
end
end
class MissingArgsError < Exception
def initialize(missing_keys)
key_list = missing_keys.map {|key| key.to_s}.join(' and the ')
+1 -1
View File
@@ -2,6 +2,6 @@
module Qiniu
module RS
VERSION = "3.0.6"
VERSION = "3.0.7"
end
end