Exception: Koala::Facebook::RestAPIError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(details = {}) ⇒ RestAPIError

Returns a new instance of RestAPIError.



207
208
209
210
# File 'lib/koala.rb', line 207

def initialize(details = {})
  self.fb_error_code = details["error_code"]  
  super("#{fb_error_code}: #{details["error_msg"]} [#{details["request_args"].map{|h| "#{h['key']}=#{h['value']}" }.join('&')}]")
end

Instance Attribute Details

#fb_error_codeObject

Returns the value of attribute fb_error_code.



206
207
208
# File 'lib/koala.rb', line 206

def fb_error_code
  @fb_error_code
end