Exception: AliyunIot::Request::RequestException
- Inherits:
-
Exception
- Object
- Exception
- AliyunIot::Request::RequestException
- Defined in:
- lib/aliyun_iot/request/xml.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
-
#initialize(ex) ⇒ RequestException
constructor
A new instance of RequestException.
Constructor Details
#initialize(ex) ⇒ RequestException
Returns a new instance of RequestException.
10 11 12 13 14 |
# File 'lib/aliyun_iot/request/xml.rb', line 10 def initialize(ex) @content = Hash.xml_object(ex.to_s, "Error") rescue @content = {"Message" => ex.} end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
7 8 9 |
# File 'lib/aliyun_iot/request/xml.rb', line 7 def content @content end |