Sha256: 20c355bd0f2fa2a072a6f6a1f217c40dc9b8f93e0d86cc266c7fffc5b4c9c425
Contents?: true
Size: 465 Bytes
Versions: 3
Compression:
Stored size: 465 Bytes
Contents
module AliyunGreen class Error < StandardError attr_reader :code ClientError = Class.new(self) # 596 账号未授权、账号欠费、账号未开通、账号被禁等原因,具体可以参考返回的msg。 PermissionDenyError = Class.new(ClientError) # SignatureDoesNotMatch SignatureDoesNotMatchError = Class.new(ClientError) def initialize(message = '', code = nil) super(message) @code = code end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
aliyun_green-0.1.4 | lib/aliyun_green/error.rb |
aliyun_green-0.1.3 | lib/aliyun_green/error.rb |
aliyun_green-0.1.1 | lib/aliyun_green/error.rb |