Exception: TinyFB::FaceBookError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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

#codeObject

Returns the value of attribute code.



135
136
137
# File 'lib/tiny_fb_graph.rb', line 135

def code
  @code
end

#error_msgObject

Returns the value of attribute error_msg.



135
136
137
# File 'lib/tiny_fb_graph.rb', line 135

def error_msg
  @error_msg
end