Skip to content

Commit

Permalink
add document links
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin91 committed Mar 10, 2018
1 parent 38db7df commit 2b61825
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rong_cloud/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class MissingOptionError < ::StandardError;end
class RequestError < ::StandardError
# @!attribute [rw] business_code
# extended attribute, recording the return codes defined by RongCloud,
# View http://www.rongcloud.cn/docs/server.html#API_方法返回值说明
# refer to: http://www.rongcloud.cn/docs/server.html#api_code
attr_accessor :business_code
end

Expand All @@ -20,6 +20,8 @@ class TooManyRequests < RequestError;end
class InternalServerError < RequestError;end
class Timeout < RequestError;end

# http://www.rongcloud.cn/docs/server.html#api
# API 返回值
HTTP_CODE_TO_ERRORS_MAP = {
"400" => BadRequest,
"401" => AuthenticationFailed,
Expand Down

0 comments on commit 2b61825

Please sign in to comment.