Exception: MiniFB::FaceBookError
- Inherits:
-
StandardError
- Object
- StandardError
- MiniFB::FaceBookError
- Defined in:
- lib/photo_mini_fb.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
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.
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
#code ⇒ Object
Returns the value of attribute code.
25 26 27 |
# File 'lib/photo_mini_fb.rb', line 25 def code @code end |