Exception: TinyFB::FaceBookError
- Inherits:
-
StandardError
- Object
- StandardError
- TinyFB::FaceBookError
- Defined in:
- lib/tiny_fb_graph.rb
Overview
Exception Class
May be raised by node, raw_node, post and post_file
You have to catch this exception in your code
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#error_msg ⇒ Object
Returns the value of attribute error_msg.
Instance Method Summary collapse
-
#initialize(error_code, error_msg) ⇒ FaceBookError
constructor
Error that happens during a facebook call.
Constructor Details
#initialize(error_code, error_msg) ⇒ FaceBookError
Error that happens during a facebook call.
137 138 139 140 141 |
# File 'lib/tiny_fb_graph.rb', line 137 def initialize(error_code, error_msg) @code = error_code @error_msg = error_msg super("Facebook error #{error_code}: #{error_msg}") end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
135 136 137 |
# File 'lib/tiny_fb_graph.rb', line 135 def code @code end |
#error_msg ⇒ Object
Returns the value of attribute error_msg.
135 136 137 |
# File 'lib/tiny_fb_graph.rb', line 135 def error_msg @error_msg end |