Exception: AliyunGreen::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/aliyun_green/error.rb

Constant Summary collapse

ClientError =
Class.new(self)
PermissionDenyError =

596 账号未授权、账号欠费、账号未开通、账号被禁等原因,具体可以参考返回的msg。

Class.new(ClientError)
SignatureDoesNotMatchError =

SignatureDoesNotMatch

Class.new(ClientError)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = '', code = nil) ⇒ Error

Returns a new instance of Error.



12
13
14
15
16
# File 'lib/aliyun_green/error.rb', line 12

def initialize(message = '', code = nil)
  super(message)

  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/aliyun_green/error.rb', line 3

def code
  @code
end