Exception: FacebookRb::FacebookError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- FacebookRb::FacebookError
- Defined in:
- lib/facebookrb.rb
Instance Attribute Summary collapse
-
#fb_code ⇒ Object
Returns the value of attribute fb_code.
-
#fb_message ⇒ Object
Returns the value of attribute fb_message.
Instance Method Summary collapse
-
#initialize(error_code, error_msg) ⇒ FacebookError
constructor
A new instance of FacebookError.
Constructor Details
#initialize(error_code, error_msg) ⇒ FacebookError
Returns a new instance of FacebookError.
10 11 12 13 14 |
# File 'lib/facebookrb.rb', line 10 def initialize(error_code, error_msg) self.fb_code = error_code self. = error_msg super("Facebook error #{error_code}: #{error_msg}" ) end |
Instance Attribute Details
#fb_code ⇒ Object
Returns the value of attribute fb_code.
9 10 11 |
# File 'lib/facebookrb.rb', line 9 def fb_code @fb_code end |
#fb_message ⇒ Object
Returns the value of attribute fb_message.
9 10 11 |
# File 'lib/facebookrb.rb', line 9 def @fb_message end |