Exception: MiniFB::FaceBookError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mini_fb.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_code, error_msg) ⇒ FaceBookError

Error that happens during a facebook call.



66
67
68
69
# File 'lib/mini_fb.rb', line 66

def initialize(error_code, error_msg)
    @code = error_code
    super("Facebook error #{error_code}: #{error_msg}")
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



64
65
66
# File 'lib/mini_fb.rb', line 64

def code
  @code
end