Exception: Koala::Facebook::GraphAPIError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(details = {}) ⇒ GraphAPIError

Returns a new instance of GraphAPIError.



174
175
176
177
# File 'lib/koala.rb', line 174

def initialize(details = {})
  self.fb_error_type = details["type"]  
  super("#{fb_error_type}: #{details["message"]}")
end

Instance Attribute Details

#fb_error_typeObject

Returns the value of attribute fb_error_type.



173
174
175
# File 'lib/koala.rb', line 173

def fb_error_type
  @fb_error_type
end