Exception: BaiduApi::LbsCloud::Exceptions::Failed

Inherits:
StandardError
  • Object
show all
Defined in:
lib/baidu_api/lbs_cloud/exceptions/failed.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw) ⇒ Failed

Returns a new instance of Failed.



4
5
6
7
# File 'lib/baidu_api/lbs_cloud/exceptions/failed.rb', line 4

def initialize(raw)
  @raw = raw
  super(raw['message'])
end

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



3
4
5
# File 'lib/baidu_api/lbs_cloud/exceptions/failed.rb', line 3

def raw
  @raw
end