Exception: Koala::Facebook::APIError

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

Overview

Errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(details = {}) ⇒ APIError

Returns a new instance of APIError.



100
101
102
103
# File 'lib/koala.rb', line 100

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.



99
100
101
# File 'lib/koala.rb', line 99

def fb_error_type
  @fb_error_type
end