Exception: AliyunMns::RequestException

Inherits:
Exception
  • Object
show all
Defined in:
lib/aliyun_mns/request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ex) ⇒ RequestException

Returns a new instance of RequestException.



8
9
10
11
12
# File 'lib/aliyun_mns/request.rb', line 8

def initialize(ex)
  @content = Hash.xml_object(ex.to_s, "Error")
rescue
  @content = {"Message" => ex.message}
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



5
6
7
# File 'lib/aliyun_mns/request.rb', line 5

def content
  @content
end