Exception: Koala::Facebook::RestAPIError
- Inherits:
-
Exception
- Object
- Exception
- Koala::Facebook::RestAPIError
- Defined in:
- lib/koala.rb
Instance Attribute Summary collapse
-
#fb_error_code ⇒ Object
Returns the value of attribute fb_error_code.
Instance Method Summary collapse
-
#initialize(details = {}) ⇒ RestAPIError
constructor
A new instance of RestAPIError.
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_code ⇒ Object
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 |