Exception: Koala::Facebook::APIError
- Inherits:
-
Exception
- Object
- Exception
- Koala::Facebook::APIError
- Defined in:
- lib/koala.rb
Instance Attribute Summary collapse
-
#fb_error_type ⇒ Object
Returns the value of attribute fb_error_type.
Instance Method Summary collapse
-
#initialize(details = {}) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(details = {}) ⇒ APIError
Returns a new instance of APIError.
99 100 101 102 |
# File 'lib/koala.rb', line 99 def initialize(details = {}) self.fb_error_type = details["type"] super("#{fb_error_type}: #{details["message"]}") end |
Instance Attribute Details
#fb_error_type ⇒ Object
Returns the value of attribute fb_error_type.
98 99 100 |
# File 'lib/koala.rb', line 98 def fb_error_type @fb_error_type end |