Exception: AliyunGreen::Error
- Inherits:
-
StandardError
- Object
- StandardError
- AliyunGreen::Error
- 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
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message = '', code = nil) ⇒ Error
constructor
A new instance of Error.
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( = '', code = nil) super() @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/aliyun_green/error.rb', line 3 def code @code end |