Exception: MiniFB::FaceBookError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/photo_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.



27
28
29
30
# File 'lib/photo_mini_fb.rb', line 27

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.



25
26
27
# File 'lib/photo_mini_fb.rb', line 25

def code
  @code
end