Exception: FacebookRb::FacebookError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/facebookrb.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.fb_message = error_msg
  super("Facebook error #{error_code}: #{error_msg}" )
end

Instance Attribute Details

#fb_codeObject

Returns the value of attribute fb_code.



9
10
11
# File 'lib/facebookrb.rb', line 9

def fb_code
  @fb_code
end

#fb_messageObject

Returns the value of attribute fb_message.



9
10
11
# File 'lib/facebookrb.rb', line 9

def fb_message
  @fb_message
end